- Home
- Output Questions for Class 10 ICSE Computer Applications
Predict the Output of the given snippet, when executed: int
Output Questions for Class 10 ICSE Computer Applications
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));
}