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



2 comments:

  1. I think we all wish to thank so many good articles, blog to share with us. unit circle chart

    ReplyDelete
  2. Admiring the time and effort you put into your blog and detailed information you offer!..
    latest showbox apk download

    ReplyDelete

Donate

Download App and Learn when ever you want

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