- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Environmental Science
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- articles and Answers
- Effective Resume Writing
- HR Interview articles
- Computer Glossary
- Who is Who
How to Calculate Area of Circle using C Programming
C Program to Calculate Area of Circle
Shape : Circle
Formula : Π * r * r
Definition :
1. Ellipse in which the two axes are of equal length
2. Plane curve generated by one point moving at a constant distance from a fixed point
3. You can compute the area of a Circle if you know its radius.
Program :
#include <stdio.h>
int main() {
float radius, area;
printf("\nEnter the radius of Circle : ");
scanf("%d", &radius);
area = 3.14 * radius * radius;
printf("\nArea of Circle : %f", area);
return (0);
}
Output :
Enter the radius of Circle : 2.0
Area of Circle : 6.14
Advertisements
ads