Computer Science, asked by ambertanweer8431, 1 year ago

Write a c program to find area and circumference of a circle

Answers

Answered by saransh0111oyqnvj
25
#include<stdio.h>

int main() {

int rad;
float PI = 3.14, area, ci;

printf("\nEnter radius of circle: ");
scanf("%d", &rad);

area = PI * rad * rad;
printf("\nArea of circle : %f ", area);

ci = 2 * PI * rad;
printf("\nCircumference : %f ", ci);

return (0);
}
Answered by SaurabhJacob
5

Program to find the Area and Circumference,

#include<iostream>

using namespace std;

int main()

{

int radius, area, circf;

cout<<"Enter the radius of the circle = ";

cin>>radius;

cout<<"Circumference of the circle is ",2*3.14*radius;

cout<<"Area of the circle is ",3.14*radius*radius;

return 0;

}

Similar questions