/* Write a C program that calculates the perimeter and area of the rectangle, and the area of the circle. Ask user to enter length and width of rectangle, and ask user to enter radius of the circle. Use the following formulas: area = width * length perimeter= 2*length + 2*width areaCircle = 3.14 * radius * radius */ #include int main(){ //Declaration and input float length, width, area, per, radius, areaCircle; printf("enter length width and circle area\n"); scanf("%f%f%f",&length,&width,&radius); //calculation area = width * length; per= 2*length + 2*width; areaCircle = 3.14 * radius * radius; //output printf("area %f\n",area); printf("perimeter %f\n",per); printf("areaCircle %f\n",areaCircle); return 0; }