Computer Science, asked by PLSHELEP, 1 month ago

pls help urgent -
Write a program in C, to calculate the area of a circle and rectangle using function.​

Answers

Answered by dollkhandagale859
0

Answer:

ok let me u understand I will send answer

Answered by fatimaamumtaz123
0

Answer:

#include<stdio.h>

int main()

{

   float radius, area;

   printf("Enter Radius of Circle(in cm): ");

   scanf("%f", &radius);

   area = 3.14 * radius * radius;

   printf("Area of Circle having radius %.2f cm= %.2f cm\n", radius,area);

   return 0;

}

#include<stdio.h>

int main()

{

   float len, wid, area;

   printf("Enter length & width of Rectangle (in cm): ");

   scanf("%f %f",&len,&wid);

   area = len * wid;

   printf("Area of Rectangle= %.3f cm\n",area);

   return 0;

 

Explanation:

Similar questions