//To find Area of a triangle
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float a=3.14,b,c;
printf("Enter Radius\n");
scanf("%f",&b);
c=a*b*b;
printf("Area=%f",c);
getch();
}
-----------------------------------------------------------
Output
Enter radius
3
Area=28.26
===============================================
No comments:
Post a Comment