+ 1

what is the output?

I came across in the challenge , I answered 7 but WRONG. Int n=7; n++; System.out.println(n); n--; System.out.println(n);

7th Jun 2017, 3:22 PM
gogamid
4 Respuestas
+ 4
The answer is 8 ( line) 7,and that's why I don't play challenges very much anymore. Thanks for sharing your problem.
7th Jun 2017, 5:39 PM
Luyanda
Luyanda - avatar
+ 3
Output: 8 7
7th Jun 2017, 3:24 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 2
What was the question?
7th Jun 2017, 3:23 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 1
There was only one digit output
7th Jun 2017, 5:10 PM
gogamid