- 1
How to find circle area with user input value
Plz tell me. Very important quiz. I am learning now.
5 Antworten
0
can you send code plz
0
mirshath
Which language?
0
For python the code is:
import math
r = float(input())
print(math.pi*math.pow(r,2))
0
couldnt understan. can you clear ly explan plz
0
mirshath the formula for circle's are is
Area = pi*radius*radius
For using pi you should import math module then get radius from user using input() method and store it in variable r, at last print pi multiply by (r) in power of two (math.pow(r,2))