Computer Science, asked by suvosarkar5129, 11 months ago

Write 1/3pi r2h in python

Answers

Answered by meerah156
0

Answer:

from math import pi

s=(1/3)*pi*(r**2)*h

#or

s= (pi*(r**2)*h)/3

Explanation:

I took pi r2h in the denominator

it works according to precedence

PEMDAS (i,e parenthesis, exponential, multiplication and division then addition and subtraction)

Similar questions