In geometry, the area enclosed by a circle of radius r is πr2. Here the Greek letter π represents a constant, approximately equal to 3.14159, which is equal to the ratio of the circumference of any circle to its diameter.
The formulas for the perimeter P and area A of a circle are given by:
P = 2 π r
A = π r 2
Pseudocode :Area
1 2 3 4 5 6 7 8 | BEGIN NUMBER r, area INPUT r area=3.14*r*r OUTPUT area END |
Pseudocode: Perimeter
1 2 3 4 5 6 7 8 | BEGIN NUMBER r, perimeter INPUT r perimeter=3.14*2*r OUTPUT perimeter END |
Flowchart :Area
Flowchart: Perimeter
Thanks for sharing this pseudocode. I really like flowcharts. Which software did you use to draw them?