The C Programs
An ultimate blog where you can find almost all C programs.....!!
Pages
Home
Contact Us
Sunday 29 April 2012
C program that accepts radius of a circle and print its area
#include<stdio.h>
#include<conio.h>
void main()
{
float radius,area;
clrscr();
//to clear the screen
printf("Enter radius of the circle:");
scanf("%f",&radius);
area=3.14*(radius*radius);
printf("Area=%f",area);
getch();
//to stop the screen
}
C program that accepts radius of a circle and print its area
2012-04-29T03:19:00-07:00
Neeraj Mishra
Basic|
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)