Skip to content

Commit 2d9a4d9

Browse files
authored
Update cylinder_weight.py
1 parent 5e587a5 commit 2d9a4d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cylinder_weight.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
#Determine the weight of 3 different steel cylinders using the following formula:
1+
# Determine the weight of 3 different steel cylinders using the following formula:
22

3-
#𝑤𝑒𝑖𝑔ℎ𝑡 = 𝑑𝑒𝑛𝑠𝑖𝑡𝑦 × π × 𝑟𝑎𝑑𝑖𝑢𝑠2 × ℎ𝑒𝑖𝑔ℎ𝑡
3+
# 𝑤𝑒𝑖𝑔ℎ𝑡 = 𝑑𝑒𝑛𝑠𝑖𝑡𝑦 × π × 𝑟𝑎𝑑𝑖𝑢𝑠2 × ℎ𝑒𝑖𝑔ℎ𝑡
44

55
#Prompt the users to enter the radius and height separately for the THREE different cylinders, given the density is the same for all the cylinders which is 0.634.
6+
# Coding by Bellamy
67

78

89

0 commit comments

Comments
 (0)