Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Wednesday, February 9, 2011

C8 : Area of a triangle


Back to Home   &  C


//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
===============================================


Back to Home   &  C

No comments: