C program to calculate area of a circle. In this example we will learn to calculate the area of a circle. Here in this program we will use 3.14 as the value of pi. The formula to calculate the area of a circle is: area= π r² Flowchart To Calculate the Area of a Circle: PROGRAM: #include <conio.h> #include <stdio.h> int main () { float radius , area ; printf ( "Enter the radius of the circle : " ); scanf ( "%f" ,& radius ); area = 3.14 * radius * radius ; printf ( "Area of the circle is : %.2f" , area ); ...
Comments