Predict the output of the following code: (2)
c=0
for x in range(10):
for y in range(5):
c+=1
print(c)
Attachments:
Answers
Answered by
2
It is doing a counting from 1 to 50
Here x is getting multiplied with y
And c is getting added till the outcome of x * y
Similar questions