Task:
"Create a program that calculates the area of a triangle, if a person has set the lengths of three sides A, B, C. Before calculating the area, check whether there is a triangle with given sides "
#include <math.h> #include <stdio.h> #pragma hdrstop //--------------------------------------------------------------------------- #pragma argsused int main(int argc, char* argv[]) { int a=12.0,b=7.0,c=8.0,p,s; if ((a>=(b+c))|(b>=(a+c))|(c>=(a+B))); else ("Impossible triagle"); p=(a+b+c)/2; s=pow(p*(pa)*(pB)*(pc),0.5);