using 'continue' how to solve following problem?not getting proper output.numbers divisible by 3 should not be printed | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

using 'continue' how to solve following problem?not getting proper output.numbers divisible by 3 should not be printed

for i in range(1,41): if i%3==0: continue print(i)

5th Feb 2020, 7:09 PM
Radhey
Radhey - avatar
2 Answers
0
You have to put the print function inside the for loop
5th Feb 2020, 7:15 PM
Ashif T
0
thanx bro
7th Feb 2020, 7:54 AM
Radhey
Radhey - avatar