// this is a C program that read radius of circle and display area.
#include<stdio.h>
#include<conio.h>
void main()
{
float r;
float pi=3.14;
clrscr();
printf("Enter value of radius :");
scanf("%f",&r);
printf("The area of the cicle is %f.",pi*r*r);
getch();
}
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment
If you have any confusion, Please leave a comment. I will assist you. Do not include any URL in comments.