Get Email Subscription

Enter your email address:

Delivered by FeedBurner

Thursday, December 31, 2009

Write a program in 'C' to enter the radius and calculate and print the area of Circle using the formula area = TT * (radius)2, where TT = 3.14



#include<stdio.h>
main()
{
float r, a;
printf("Enter the value of radius\n");
scanf("%f", &r);
a = 3.14*r*r;
printf("The area is %f\n", a);
return(0);
}

For eg :-

Output :-
Enter the value of radius
5
The area is 78.50000

Related Posts by Categories



0 comments:

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP