Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.")
- 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.")
- input1 = input("number1>")
- input2 = input("number2>")
- input3 = input("number3>")
- number1 = float(input1)
- number2 = float(input2)
- number3 = float(input3)
- result = number1*number2*number3
- output = str(result)
- print (input1 + "*" + input2 + "*" + input3 + " = " + output + " metres")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement