# Difference and Product of Two Numbers in Python

Jan 30, 2022

Machine Problem

`Write a program to ask the user to give two numbers and then the program will compute the difference andand product of two given numbers and display the results on the screen.`
```I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My mobile number here in the Philippines is 09173084360.Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGgThank you very much for your support.

```

Program Listing

``````
# Machine Problem
#
# Write a program to ask the user to give two numbers
# and then the program will compute the difference and
# and product of two given numbers and display the
# results on the screen.

print()
print("\tDifference and Product of Two Numbers in Python")
print()

num1 = input("\tEnter the first number  : ")
num2 = input("\tEnter the second number : ")

difference = int(num1) - int(num2)
product = int(num1) * int(num2)

print()
print("\tDifference of {} and {} is {}".format(num1, num2,product),'.')
print("\tProduct of {} and {} is {}".format(num1, num2,difference),'.')
print()
print("\tEnd of Program")
print()``````