Computer Science
Find the volume of the cylinder (πr2h) as shown:
Radius = 8 cm
Height = 15 cm
Python
Python Data Handling
20 Likes
Answer
import math
r = 8
h = 15
v = math.pi * r * r * h
print("Volume of Cylinder =", v)
Output
Volume of Cylinder = 3015.928947446201
Answered By
9 Likes
Related Questions
Write a program that inputs a string and then prints it equal to number of times its length, e.g.,
Enter string : "eka"
Result ekaekaekaWrite a program to input the radius of a sphere and calculate its volume (V = 4/3πr3)
Write a program to calculate the area of an equilateral triangle. (area = (√3 / 4) * side * side).
Write a program to calculate the radius of a sphere whose area (4πr2) is given.