Predict the output of the following snippets:
i) for(int i=1;i<=5;i++)
{
System.out.println (++i);
}
ii) switch(n)
case 1:
System.out.println (“one”);
break;
case 2:
System.out.println (“two”);
break;
case 3:
System.out.println (“three”);
break;
default:
System.out.println (“Wrong Input”);
break;
when (i) n=0 (ii) n=3
Answers
Answered by
0
Answer:
what is this
Explanation:
what is this
Similar questions