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
0
Answer:
answer-1
Explanation:
x
y
=
1
a=1
b=1
m=10
n=5
Similar questions
Computer Science,
2 months ago
Hindi,
2 months ago
CBSE BOARD X,
2 months ago
Hindi,
4 months ago
Math,
10 months ago
Math,
10 months ago
English,
10 months ago