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>y and y<100
print(x+10)
else if y>xorx<100:
print(y+10)
else
print(x+y)
3. a='hello'
print(a*4)
Answers
Answered by
6
1. a=100b=20if a>bprint (true)elseprint (false)
2. x=290 y= 300if x<100 and y <xprint x+190elseif y >x or x>100 print y+40(300-290)
3. a= hello print a= hello else print sorry incorrectly written
pls mark me the brilliantest
Similar questions
English,
1 month ago
Hindi,
1 month ago
Math,
1 month ago
Math,
3 months ago
Science,
3 months ago
Computer Science,
9 months ago
Psychology,
9 months ago
India Languages,
9 months ago