Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("first attempt")
- print("lets try to do some mathematics")
- input1 = input("number 1>")
- input2 = input("number 2>")
- input3 = input("number 3>")
- number1 = int(input1)
- number2 = int(input2)
- number3 = int(input3)
- add = number1 + number2 + number3
- area = number1 * number2
- subs = number3 - number2 - number1
- output1 = str(add)
- print(input1 + "+" + input2 + "+" + input3 + "=" + output1)
- output2 = str(area)
- print(input1 + "*" + input2 + "=" + output2)
- output3 = str(subs)
- print(input3 + "-" + input2 + "-" + input1 + "=" + output3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement