Perfe
LAB SESSION
A. Rewrite the following statements after correcting them:
1. a=100
b=20
if(a>b)
print(a)
else
print(b)
2. X=290
y=300
if x>yandy<100
print(x+10)
else if y>x orx<100:
print(y+10)
else
print(x+y)
3. a='hello'
print(a*4)
Answers
Answered by
12
Answer:
int a=100;
int b=20;
if(a>b)
System.out.println(" a");
else
System.out.println(" b");
int x=290;
int y=300;
if(x>y && y<100)
System.out.println(x+10);
else i f(y>x || x< 100)
System.out.println(y+10);
else
System.out.println(x+y);
chr a='hello';
System.out.println(a*4);
pls mark as BRAINLIEST I will follow and thank u
Similar questions