Computer Science, asked by eshanthkatakam, 9 months ago

Convert the following algorithm to a program written in Python Step 1: Start Step 2:Read radius and store to R Step 3:Assign value of pie to P Step 4:Find area Step 5:Display area Step 6:Stop

Answers

Answered by bharath7965
1

Explanation:

I will provide you two types of solutions for this problem. Hope it helps you

I am providing the solution for the area of circle. hope you see.

#1st

import math

R=int(input())

print(math.pi * (R**2)) #R^2 is written as R**2 in python

#or

#2nd

R = int(input())

P = 3.14

print(3.14 * (R**2))

Similar questions