Computer Science
Write a Python program that accepts radius of a circle and prints its area.
Python
Python Funda
236 Likes
Answer
r = float(input("Enter radius of circle: "))
a = 3.14159 * r * r
print("Area of circle =", a)
Output
Enter radius of circle: 7.5
Area of circle = 176.7144375
Answered By
120 Likes
Related Questions
Write the program with maximum three lines of code and that assigns first 5 multiples of a number to 5 variables and then print them.
Write a short program that asks for your height in centimetres and then converts your height to feet and inches. (1 foot = 12 inches, 1 inch = 2.54 cm).
Modify above program so as to print output as 5@10@9.
Write Python program that accepts marks in 5 subjects and outputs average marks.