Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hello & Welcome to Arithmetic World")
- print("I am a bot and help you to do different operations")
- users_name = input("What is you name? ")
- print("Welcome user " + users_name)
- print("let's add three numbers together")
- input1 = input("Number1 > ")
- input2 = input("Number2 > ")
- input3 = input("Number3 > ")
- number1 = int(input1)
- number2 = int(input2)
- number3 = int(input3)
- result = number1 + number2 + number3
- output = str(result)
- print(input1 + "+" + input2 + "+" +input3 +"=" + output)
- print("Now let's sustract numbers")
- input4=input("Enter Number4 > ")
- input5=input("Enter Number5 > ")
- number4=int(input4)
- number5=int(input5)
- result=number4 - number5
- output=str(result)
- print(input4 + "-" +input5+ "=" +output)
- print("Now let's calculate the area of a square")
- input6=input("side of the square > ")
- side_of_the_square=int(input6)
- result=side_of_the_square * side_of_the_square
- output=str(result)
- print(input6+ "*" +input6+ "=" + output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement