Computer Science, asked by lilymehra6, 10 months ago

Write algorithm and Draw flowchart to find Area and circumference of Circle?
Radius of circle = 2pi

Answers

Answered by mindfulmaisel
5

Algorithm and flowchart for calculating the area and circumference of a circle are explained below.

Explanation:

1. Algorithm: It is a method of providing instructions to the processor in step by step manner.

The algorithm to calculate circumference and area of a circle is as below:

Step 1: Start the program

Step 2: Initialize value of PI = 3.14

Step 3: Read Input 'r' (Input in this case is radius)

Step 4: Calculate circumference (C = 2*PI*r)

Step 5: Calculate area (A=PI*r*r)

Step 6: Output circumference and area

Step 7: Stop the program

This is a general algorithm to calculate circumference and area of a circle of any radius. However, the value of radius can be initialized in step 2 if it is mentioned in the question. Refer the image for flowchart.

For more details refer,

Write an algorithm to find area of circle

https://brainly.in/question/2178053

Algorithm and flowchart for area and circumference of a circle

https://brainly.in/question/6051979

Attachments:
Similar questions