Given two values, they can be integer or floating point numbers, add them.
Input Format
Two values separated by a space.
Constraints
No constraints.
Output Format
One value, the result of sum of two input values.
Sample Input 0
5 4
Sample Output 0
9
Explanation 0
5 + 4 = 9
Source Code:
a,b=list(map(float, input().split()))
if(a+b) - int(a+b)==0:
print(int(a+b))
else:
print(a+b)
Comments
Post a Comment