Contact Learn C
Copy

Program 318:Area and Circumference of Circle using Macro Substituion

Program 318:Area and Circumference of Circle using Macro Substituion
 
#include <stdio.h>
#define PI 3.14159
int main()
{
 float radius,areaCircle,circumferenceCircle;
 
 printf("Enter radius\n");
 scanf("%f",&radius);
 areaCircle=PI*radius*radius;
 circumferenceCircle=2*PI*radius;
 printf("Area of Circle : %f\nCircumference of Circle : %f\n",areaCircle,circumferenceCircle);
 
 return(0);
}
Explanation:

//Coming Soon...

Output:

Area and Circumference of Circle using Macro Substituion



Donate

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide