Predict the output of the following:
int val1 = 5, val2 = 10;
for (int i=1;i<= 3; i++) {
System.out.println(" "+val1++ +" ,"+ --val2);
System.out.println(" " +val2-- +","+ ++val1);
}
Answers
Answered by
0
Answer:
5
6
7
8
Explanation:
hope this will help you
Similar questions