This is LaTeX code:
[latex]
P = r \cdot \frac{a+b+c}{2}
[/latex]