Monday, July 13, 2020

Write c program that accept radius of circle and prints its are and circumference

#include<stdio.h>
#include<conio.h>
int main()
{
float r,a,c;
printf("input radius of a circle in cm:");
scanf("%f",&r);
a=3.14*r*r;
c=2*3.14*r;
printf("area=%.2fsq cm\n",a);
printf("circumference=%.2fsq cm",c);
getch();
}
                                  

                                              AHAD🙏

No comments:

Post a Comment

Program of electricity board

 Q.......Develop a program of electricity board of calculating bill of consumer based on unit consumption                                 UN...