Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

write a program of area of circle and circumfarance and area of ractangle

0 votes
asked Jul 22, 2018 by anonymous

1 Answer

+1 vote
answered Jul 22, 2018 by anonymous
#include<stdio.h>

int main()

{ int r,l,b,ar;

double ac,sc;

printf("Enter the radius of circle\n");

scanf("%d",&r);

ac=2*3.14*r*r; //calculating the area of circle

printf("\nArea of circle is %f",ac);

sc=2*3.14*r; //calculating the circumference

printf("\nCircumference %f",sc);

printf("\nEnter the LENGHT & BREADTH of rectangle \n");

scanf("%d%d",&l,&b);

ar=l*b; //calculating area of rectangle

printf("\nArea of rectangle is %d",ar);

return 0;

}
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...