Computer Applications
Related Questions
Give the output of the snippet:
int p = 9; while (p<=15) { p++; if(p== 10) continue; System.out.println(p); }
Rewrite the snippet using Ternary operators:
if(a<b) { c=(a+b); } else { c=(a-b); }
Give the output of the snippet:
int a=10,b=12; if(a==10&&b<=12) a--; else ++b; System.out.println(a + "and" +b);