google.com, pub-6167773875660516, DIRECT, f08c47fec0942fa0 Write a C program to find the area and circumference of the circle - 2nd puc computer science

Write a C program to find the area and circumference of the circle

 Write a C program to find the area and circumference of the circle.

#include<stdio.h>

#include<conio.h>

void main()

{

float radius, circumference, area;

clrscr();

printf("Enter the radius of the circle: ");

scanf("%f",&radius);

area=3.142*radius*radius;

circumference=2*3.142*radius;

printf("Area of the circle=%f\nCircumference of the circle=%f\n",area,circumference);

getch();

}


Output:

Enter the radius of the circle: 3

Area of the circle=28.278000

Circumference of the circle=18.851999

Write a C program to find the area and circumference of the circle  Write a C program to find the area and circumference of the circle Reviewed by Vision Academy on December 07, 2021 Rating: 5

No comments:

CheckOut

Powered by Blogger.