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

   

Comments

Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C