

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Find the area of a circle in C programming.
A circle is a closed figure. All the points of the circle are equidistant from a point that lies inside in circle. The point at the center is known as the center of the circle. The distance of points from the center is known as the radius.
The area is the quantitative representation of the span of the dimensions of a closed figure.
The area of circle is the area enclosed inside the dimensions of a circle.
The formula for calculating the area of a circle,
Area = π*r*r
To calculate the area we are given the radius of the circle as input and we will use the formula to calculate the area,
Algorithm
STEP 1: Take radius as input from the user using std input. STEP 2: Calculate the area of circle using, area = (3.14)*r*r STEP 3: Print the area to the screen using the std output.
Example
Variables used −
int r , the radius of the circle
float area, the area of circle calculated using the formula.
#include <stdio.h> int main(){ int r = 8; float area = (3.14)*r*r; printf("The area of the circle is %f",area); return 0; }
Output
The area of the circle is 200.96
- Related Questions & Answers
- Find the Area of a Circle in Java Program
- C Program for Program to find the area of a circle?
- Java program to find the area of a circle
- Python Program to find the area of a circle
- Find the area of largest circle inscribed in ellipse in C++
- Area of a Circumscribed Circle of a Square in C++
- C program to find the area of circle and cylinder using structures.
- Area of decagon inscribed within the circle in C Program?
- C Program for area of decagon inscribed within the circle?
- Area of a circle inscribed in a regular hexagon?
- Area of circle inscribed within rhombus in C Program?
- Area of circle inscribed within rhombus?
- How to calculate the area and perimeter of a circle in JavaScript?
- Program to calculate the area of an Circle inscribed in a Square
- Program to find the Area of a Parallelogram in C++
Advertisements