+ 1

Challenge Use only C++

calculator if we give input 2 + 3 / 5 Output is 1

4th Dec 2017, 2:28 PM
Arun
5 ответов
+ 1
Actually, the output for that would be 2. Division takes precedence (3 / 5) = 0 as an integer, then add 2: 2 + 0 = 2
4th Dec 2017, 5:14 PM
Zeke Williams
Zeke Williams - avatar
4th Dec 2017, 5:27 PM
ABDUL MANAN
ABDUL MANAN - avatar
+ 1
@Abdul we ca give any no of inputs
5th Dec 2017, 1:55 AM
Arun
+ 1
my code is working like (2+3)/5
5th Dec 2017, 1:55 AM
Arun