Sum of Two Numbers
Practice this coding question on Coding Gurukul.
Problem statement
A relief centre records meal packets delivered by two kitchens. Add the two delivery counts to find the total stock available for distribution. Your task Given integers a and b, compute a + b and print the exact integer total. Important details Each delivery is counted once. A kitchen may deliver no packets, so zero is a valid input. Do not concatenate the written digits or print a label alongside the answer. The combined stock may exceed the range of a signed 32-bit integer; choose a type that can represent the full sum. Worked example For deliveries of 125 and 75 packets, the stock becomes 125 + 75 = 200. If both kitchens report zero, the total is zero.
Input format
One line contains two integers a and b.
Output format
Print their sum.
Constraints
0 <= a, b <= 2000000000.
Sample input
125 75
Sample output
200
Sign in to run or submit a solution in C++, Java or Python.