(d) Give the output of the following code:
fori in range(1,16):
if i%3==0:
print(i)
In find outnut generated by the following code:
Answers
Answered by
1
Answer:
3
6
9
12
15
Explanation:
% is used to find remainder so only the numbers divisible by 3 i.e gives remainder 0 will be printed.
Similar questions