Que: Write a C program to find the area of a triangle.
Ans:
#include<stdio.h>
int main()
{
float l,b,area;
printf("Enter the l and b : ");
scanf("%f %f",&l,&b);
area=0.5*l*b;
printf("area of triangle is : %f",area);
return 0;
}
..................................................................................................................................................................
Now I show the Input or Output of the question .
...................................................................................................................................................................
....................................................................................................................................................................
Thank you :)
Comments
Post a Comment