Saturday, 30 August 2014

Write a program to find the area of a circle.

SOURCE CODE

//WAP to find the area of the circle.

#include<stdio.h>
#include<conio.h>
void main()
{
    float r, area ;
    printf("AREA OF CIRCLE\n\n") ;
   printf("Enter the radius of the circle : ") ;
   scanf("%f", &r) ;
   area=3.14*(r*r) ;
   printf("\n\nThe area of the square is : %f", area) ;
   getch() ;
}


SCREENSHOT


No comments:

Post a Comment