Wednesday, 4 April 2018

Program to calculate the area of the circle in C

This is program for calculating the area of the circle in C.Here firstly we have to declare the two variable and then we have to input the values of radius of the circles and there is having use for the formula for area.Now we are going to write the program.

 void main()
float area,r;
clrscr ();
printf ("\n Enter the values of r:);
scanf (%f ",& r);
area= 3.14*r*r;
printf ("\n area =%f'",area);

No comments:

Post a Comment

Featured post

Program to find Volume of given box in java

class volume { public static void main (String args []) { int l=5,b=6,h=10; int volume; volume=l*b*h; System.out.println (" vol...