Computer Science, asked by hataleakanksha, 2 months ago

2. Write comments in C
programe on simple program to calculate the area and perimeter of the rectange, and the area and circumference of the circle

Answers

Answered by pampatiarun567
0

Answer:

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);

Similar questions