Professional Documents
Culture Documents
Assignment 2
Assignment 2
Name**Is**James
I have 1200 dollars so I can buy 4 footballs for 450 dollars eac
# 8.Write a program to find the volume of the cylinder. Also find the
import math
radius =float(input("Enter the radius of the cylinder(in cm) :"))
height =float(input("Enter the height of the cylinder(in cm) :"))
volume=math.pi*radius**2*height
cost_per_litre=40
volume_in_litres=volume/1000
cost=volume_in_litres*cost_per_litre