Hi aspirant,
Following below is the C program displaying the same:
#include<stdio.h>
int main()
{
float r,c,a,pi,;
pi=3.14;
scanf("%f",&r);
a=pi*r*r;
printf("area= %f\n",a);
c= 2*pi*r;
printf("circumference= %f",c);
return 0;
}
Hope it helps!!
Question : If the circumference of a circle is equal to the perimeter of a square, and the radius of the given circle is positive, then which of the following options is correct?
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile