pls help urgent -
Write a program in C, to calculate the area of a circle and rectangle using function.
Answers
Answered by
0
Answer:
ok let me u understand I will send answer
Answered by
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
Math,
23 days ago
India Languages,
1 month ago
Math,
1 month ago
Chemistry,
9 months ago
English,
9 months ago