Print sum and product of 2 numbers in Python
print() - Question 9
In this question, we will see how to print the sum and product of 2 integer numbers in python programming using the print() function. To know more about print() function click on the print() function lesson.
Q9) Write a program in python to find the sum and product of 2 integer numbers like a=5 and b=3.
Program
a=5; b=3
print('Sum={}'.format(a+b))
print('Product={}'.format(a*b))
Output
Sum=8 Product=15