1007 solution python
a= int(input()) b= int(input()) c= int(input()) d= int(input()) difference=((a * b) - (c * d)) print("DIFERENCA = %d" %difference)
Here is what the above code is Doing:
1. It’s asking the user to input 4 integers.
2. It’s storing the 4 integers in 4 different variables.
3. It’s calculating the difference between the product of the first two integers and the product of the last two integers.
4. It’s printing the difference.