- 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
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- 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
- Related Questions & Answers
- Top 50 Programming Interview Questions & Answers (2021)
- How can we create recursive functions in Python?
- How to Find Area of Scalene Triangle using C
- How to read the values of x, y and z and print the results expressions in one line using C Program
- How to Implement Stack Operations Using Array using C
- How to reverse a given number using C
- How to Calculate Area of Equilatral Triangle using C Language
- How to calculate gross salary of a person using C Program
- How to find sum of two numbers using C Language
- How to find area and circumference of circle using C Programming
- How to Calculate Area of Rectangle using C Program
- How to check the type of triangle using C
- How to print hello world using C Language
- Write C Program to Find Largest Element in Array in C Programming
- How to reads customer number and power consumed and prints amount to be paid using C
- Write C Program to Calculate Addition of All Elements in Array
Advertisements
ads