Advertisement
HBSB

1.15

Feb 21st, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. print ("I need to know the cubic volume of a room so that I can calculate the correct amount of heat required to keep it at 18 degrees centigrade.")
  2. print ("For that, I will input the height, length and width of the room in metres and ask this program to give me the cubic metres required.")
  3. input1 = input("number1>")
  4. input2 = input("number2>")
  5. input3 = input("number3>")
  6. number1 = float(input1)
  7. number2 = float(input2)
  8. number3 = float(input3)
  9. result = number1*number2*number3
  10. output = str(result)
  11. print (input1 + "*" + input2 + "*" + input3 + " = " + output +  " metres")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement