#define pi 3.142
void main()
{
float circum,r;
printf("entr radius");
scanf("%f",&f);
area=2*pi*r;
printf("circum of the circle is =%f",f);
}
We have to write another C program which takes a file as input and replaces the string "pi" with the defined value
Where ever define variable is there i should replace with the value defined by the user.