In this we are going to see a basic program to calculate surface area of cylinder in Python Programming Language.
r = float(input("Enter radius of the cylinder: ")) #radius.
h = float(input("Enter height of the cylinder: ")) #height.
pi=3.14
surfacearea = (2*pi*r*h) + (2*pi*r*r) #calculation
print ("Surface Area Of Cylinder : ",surfacearea,"sq units") #prints surface area
#Code by Shrinivas
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP