Computer Science, asked by 12ankita9a, 4 months ago

III. Predict the output of the given snippet, when executed:
1. int a=1,b=1.m=10.n=5;
System.out.println((m+n));
System.out.println((m-n));
[ICSE-20141
if((a==1)&&(b==0))
if((a==1)&&(b==1))
tement
System.out.println((m*n));
System.out.println((m%n));
3
2. int x=1,y=1;
if(n>0)
{
X=X+1;
y=y+1;
What will be the value of x and y, if n assumes a value (i) 1 (ii) 0?​

Answers

Answered by shreyanshupattajoshi
0

Answer:

answer-1

Explanation:

x

y

=

1

a=1

b=1

m=10

n=5

Similar questions