+ 1
Challenge Use only C++
calculator if we give input 2 + 3 / 5 Output is 1
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
+ 1
@Abdul
we ca give any no of inputs
+ 1
my code is working like
(2+3)/5