0
program prints multiple nums
for num in range(10,17): if num>1: for i in range(2,num): if (num % i)==0: break else: print(num) prints 11 11 11 13 13 13 15 15 15
4 Respuestas
+ 3
You are printing num everytime num%i!=0. So all you need to do is find a way to make the output *after* the loop.
+ 1
What do you want to achieve with your program?
+ 1
thanks solved 😀
0
printing prime numbers