C-16-Q095mediumsingle_mcq
In Practical Problem #1, what does the following programme do?
num1 = int(input('Insert the first integer:'))
num2 = int(input('Insert the second integer:'))
result = num1 + num2
print('The sum of', num1, 'and', num2, 'is', result)
In Practical Problem #1, what does the following programme do?
num1 = int(input('Insert the first integer:'))
num2 = int(input('Insert the second integer:'))
result = num1 + num2
print('The sum of', num1, 'and', num2, 'is', result)
- aMultiplies two numbers
- bTakes two integers as input and prints their sum
- cReads two strings and prints their concatenation
- dSubtracts the second number from the first
ব্যাখ্যা
The program reads two integers via input(), adds them with +, and prints the result, so it outputs the sum of the two entered numbers. It does no multiplication, subtraction, or string concatenation.