Pages

This blog is under construction

Thursday, December 20, 2018

C program to compute the area of circle. Use a symbolic constant to define the π value.

#include<stdio.h>
#define PIE 3.14
void main()
{
float Rad,Area;
Rad=4;
Area=PIE*Rad*Rad;
printf("Area of a circle is--> %f",Area);
}

Area of a circle is--> 50.240002 

No comments:

Post a Comment