Computer Science, asked by SƬᏗᏒᏇᏗƦƦᎥᎧƦ, 3 months ago

Write a program to enter the radii of 34 circles. Calculate and print the following.
1. Diameter
2.Area
3. Circumference

No irrelevant answers
Vd table also​

Answers

Answered by Oreki
7

\textsf{\large \textbf{Algorithm}}

   \textsf{\textemdash \: Accept the total number of circles and radius for each circle.}\\\textsf{\textemdash \: Calculate and display the diameter, area and circumference of the circle.}\\\textsf{\textemdash \: Iterate until all circles are done.}

\textsf{\large \textbf{\underline{Variable Description} (Python)}}}

   \textsf{\textbf{radius} \textemdash \: For storing the radius of the circle.}

   \textsf{\textbf{math.pi} \textemdash \: Contains the value of} \:\: \pi .

\textsf{\large \textbf{\underline{Variable Description} (Java)}}

   \textsf{\textbf{totalCircles} (\textit{int}) \textemdash \: For storing total number of circles.}

   \textsf{\textbf{radius} (\textit{double}) \textemdash \: For storing the radius of the circle.}     

   \textsf{\textbf{Math.PI} (\textit{double}) \textemdash \: Contains the value of} \:\: \pi .

Attachments:
Answered by padhu32
0

Explanation:

#include<stdio.h>

int main() {

   int rad

 float PI = 3.14, area, ci;

   printf("\nEnter radius of circle: ");

   scanf("%d", &rad);

   area = PI * rad * rad;

   printf("\nArea of circle : %f ", area);

   ci = 2 * PI * rad;

   printf("\nCircumference : %f ", ci);

   return (0);

}

Similar questions