Computer Science, asked by wasifshaikh, 7 months ago

(a) 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));
}

Answers

Answered by kaurmanveer
4

Answer:

50

1

Explanation:

Similar questions