Гурвалжины 3 талын урт a,b,c өгөгдсөн ба талбайг ол.

‪#‎include‬<stdio.h>
#include<conio.h>
#include<math.h>
int main ()
{
int n,p,a,b,c,d,s;
printf("3 too oruul");
scanf("%d%d%d",&a,&b,&c);
p=(a+b+c)/2;
s=sqrt(p*(p-a)*(p-b)*(p-c));
printf("%d\n",s);
getch();
return 0;
}

Comments