What will be the output of the following program?
i = [12, 9, 14]
k = [7, 16, 11]
for j in i[:]:
for m in k[:]:
if(j%m == 0):
j = j // 2
m = m / 2
print (j, m)
else:
j = j + m
m = m - j
print (j, m)
Correct Answer:
19 -12
35 -19
46 -35
16 -9
8 8.0
19 -8
7 3.5
23 -7
24 -22
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions