Math, asked by avinash7117, 9 months ago

Example of algorithm to take out perimeter of a circle

Answers

Answered by Anonymous
1

I shall write this algorithm in pseudocode. From that, one can do the flowchart.

1: print “ Input the diameter of a circle”

2: input d.

3: if d = 0 or d = null then stop.

4: pi = 3.1415.

5 circumference = pi * d.

6 area = (pi * d^2) / 4.

7: print circumference, area.

--$îи©н@и@

Attachments:
Similar questions