Question Bank (5 marks) · Q10
Q.Write a C program to accept the radius of a circle and compute the area and its perimeter. Radius, r=7m.
Karnataka PUCTextbookLong· 5mImportance★★★★★est
34% · 53/154 Questions
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →[!TLDR]
Area = pirr and perimeter = 2pir; for r = 7 m the area is 153.94 sq.m and the perimeter is 43.98 m.
The program reads the radius r and applies the circle formulas with pi defined as a symbolic constant. The area is and the perimeter (circumference) is .
#include <stdio.h>
#define PI 3.14159
int main()
{
float r, area, perimeter;
printf("Enter the radius of the circle: ");
scanf("%f", &r);
area = PI * r * r;
perimeter = 2 * PI * r;
printf("Area = %.2f sq.m\n", area);
printf("Perimeter = %.2f m\n", perimeter); …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.