Write an algorithm for area and perimeter of a circle
Answers
Answered by
1
Answer:
perimeter will divide
Answered by
9
Answer:
Explanation:
Start the program
Get the input from the user for radius(r)
Get the input from the user for variable choice either 1 or 2
If choice is 1 then calculate area of circle
Area of circle is 3.14*r*r
If choice is 2 then calculate perimeter of circle
Perimeter of circle is 2*3.14*r
If choice is not 1 or 2 then print choice must be 1 or 2
Print the result
Similar questions