0

public class Program { public static void main(String[] args) { int s=13; int h=45; int j=s++h; System . out. println (j); } }

answer is not coming

28th Jun 2016, 9:11 AM
satyam
satyam - avatar
3 ответов
+ 2
++ just adds 1 to a variable.
28th Jun 2016, 10:42 AM
seyfullah
seyfullah - avatar
0
as you can see he wants to add the two numbers. so that is the way
28th Jun 2016, 10:49 AM
seyfullah
seyfullah - avatar
- 1
what you need to do is , int j = s += h; now the compiler adds h to s and the answer is stored in j
28th Jun 2016, 10:39 AM
seyfullah
seyfullah - avatar