I need to calculate the area of a triangle using this formula.
What is wrong with my code?
error C2063: 'p' : not a function
#include <stdio.h>
void Area(int a, int b, int c)
{
int p = a * b * c;
int area = (p(p - a)(p - b)(p - c))/2;
printf("%d",area);
}
int main ()
{
convert();
system("pause");
return 0;
}