0

Entering the result

how could I enter result of the arthematic operations example:- int no1 = 2; int no2 = 3; int add = no1 + no2; System.out.print("?"); end what should I replace the question mark https://code.sololearn.com/c13G3mxsmu9L/?ref=app

22nd Mar 2018, 2:44 PM
Vignesh R
Vignesh R - avatar
1 ответ
+ 5
The correct way is: System.out.print(tot);//Without quotes since it's a variable. Hope it helps.
22nd Mar 2018, 2:47 PM
Fabio