- 1

How to find circle area with user input value

Plz tell me. Very important quiz. I am learning now.

15th Jan 2020, 5:16 AM
mirshath
mirshath - avatar
5 Antworten
0
can you send code plz
15th Jan 2020, 5:16 AM
mirshath
mirshath - avatar
0
mirshath Which language?
15th Jan 2020, 5:30 AM
Abdol Hashimi
Abdol Hashimi - avatar
0
For python the code is: import math r = float(input()) print(math.pi*math.pow(r,2))
15th Jan 2020, 5:31 AM
Abdol Hashimi
Abdol Hashimi - avatar
0
couldnt understan. can you clear ly explan plz
15th Jan 2020, 5:33 AM
mirshath
mirshath - avatar
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))
15th Jan 2020, 5:53 AM
Abdol Hashimi
Abdol Hashimi - avatar