What will be the output for the following program for V is equal to 1 to 10 next to vi print to v
Answers
Answered by
0
Answer:
(i) a = 110
while a > 100:
print(a)
a -= 2
(ii) for i in range(20,30,2):
print(i)
(iii) country = 'INDIA'
for i in country:
print (i)
(iv) i = 0; sum = 0
while i < 9:
if i % 4 == 0:
sum = sum + i
i = i + 2
print (sum)
(v) for x in range(1,4):
for y in range(2,5):
if x * y > 10:
break
print (x * y)
(vi) var = 7
while var > 0:
print ('Current variable value: ', var)
var = var -1
if var == 3:
break
else:
if var == 6:
var = var -1
continue
print ("Good bye!")
Similar questions