What will the program output be when executed?
a = 2
b = 3
c = 4
b = b - 1
a = a + b
// c = c / 2
rezt = (a + b + c) / 2
c = 0
if rezt < 5 then:
print(a)
elif rezt > 5 then:
print(b)
else:
print(c)
What will the program output be when executed?
a = 2
b = 3
c = 4
b = b - 1
a = a + b
// c = c / 2
rezt = (a + b + c) / 2
c = 0
if rezt < 5 then:
print(a)
elif rezt > 5 then:
print(b)
else:
print(c)
Create a free account to access the full topic