- Home
- Output Questions for Class 10 ICSE Computer Applications
Predict the output of the following Java program code
Output Questions for Class 10 ICSE Computer Applications
Predict the output of the following Java program code snippet:
int m=3,n=5,p=4;
if(m==n && n!=p)
{
System.out.println(m*n);
System.out.println(n%p);
}
if((m!=n) || (n==p))
{
System.out.println(m+n);
System.out.println(m-n);
}