Computer Applications
Related Questions
What is a compound statement? Give an example.
Explain with an example the if-else-if construct.
Give two differences between the switch statement and the if-else statement.
Predict the Output of the given snippet, when executed:
int a=1,b=1,m=10,n=5; if((a==1)&&(b==0)) { System.out.println((m+n)); System.out.println((m—n)); } if((a==1)&&(b==1)) { System.out.println((m*n)); System. out.println((m%n)); }