Home / Programs / Program to find area and circumference of circle.
🚀 Programming Example

Program to find area and circumference of circle.

👁 4,486 Views
💻 Practical Program
📘 Step Learning

In this program we will calculate area and circumference of circle.

Flow chart

Flow chart for area and circumference of circle
Figure:

💻 Program Code

#include"stdio.h"
void main()
{
int r;
float pi = 3.14, area, circumference;

printf("enter radius of circle: \n");
scanf("%d",&r);

area = pi * r * r;
printf("area of circle=%f \n",area);

circumference = 2 * pi * r;
printf("circumference=%f \n", circumference);
 
}
                        

🖥 Program Output

enter radius of circle:
6
area of circle=113.040001
circumference=37.680000
Press any key to continue . . .
                            
📚 Learning Subject

Master Programming Through Practical Examples

Improve your coding logic, problem-solving skills and programming confidence by practicing real-world examples with explanations.

🎯 How to learn from this example

First understand the algorithm carefully. Then study the program line-by-line and compare it with the output. Finally, review the explanation section to strengthen your logic and programming understanding.

🔥 Practice suggestion

Rewrite the program without looking at the code. Modify values, conditions or logic and run it again. This helps improve confidence and strengthens coding skills much faster.