Lab Description:
In this lab, the program is to enter two integer numbers with following operation and display the result.
Code:
x = input(‘Enter the first number:’)
y = input(‘Enter the second number:’)
print(‘The sum of the number is’,x+y)
print(‘The difference of the number is’,x-y)
print(‘The product of the number is’,x*y)
print(‘The quotient of the number is’,x/y)
print(‘The remainder of the number is’,x%y)
if(x<y):
print(‘x is less than y’)
elif(x>y):
print(‘x is greater than y’)
else:
print(‘x is equal to y’)
x = input(‘Enter the first number:’)
y = input(‘Enter the second number:’)
Screenshot: