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);
}

Leave a Reply

Your email address will not be published. Required fields are marked *