Saved Bookmarks
| 1. |
Page No.el n'Write a python programinput two numbers and y by theuser and print their sum andProduct in new line usingnewline character |
Answer» Programx = int(input("Enter the FIRST number:\n")) y = int(input("Enter the second number:\n")) sum = x + y product = x*y print("The sum of the two numbers you have entered is " , str(sum)+ ".\n The product of the two numbers you have entered is", str(product)+ ".") Explanation |
|