Use Macro to define the value of PI and Find the Perimeter of a Circle

#include<stdio.h>
#define pi 3.14
void main()
{
int r;
r=7;
printf("Perimeter=%f",2*pi*r);
}

   

0 Comments