Computer Science, asked by prathamsomani005, 1 day ago

Write the output of the following program :
for i in range (1,5,2):
print("Computers")

Answers

Answered by desikan1971gmailcom
0

Answer:

Outer loop executes 4 times. For each iteration of outer loop, inner loop executes 5 times. Therefore, the total number of times body of inner loop gets executed is 4 * 5 = 20. Thats why there are 20 characters in the output (leaving spaces). When the condition is true then + is printed else o is printed.

Similar questions