Write a program Area of circle.
//Area of Circle......
#include<stdio.h>
#include<conio.h>
void main()
{
int pi=3.14,r;
float circle;
printf("\n Enter your radius=");
scanf("%d",&r);
circle=pi*r*r;
printf("\n Area of circle=%f",circle);
getch();
}
Output:-
Enter your radius=2
Area of circle=12.000000
Related C Programs..
- Write a program to add two numbers. (Solution).
- Write a program to subtraction two number. (Solution).
- Write a program to Multiplication Two Number. (Solution).
- Write a program to Calculate Simple interest. (Solution).
- Write a program to Division two numbers. (Solution).
- Write a program to calculate area of a circle. (Solution).
- Basic Question All
0 Comments