Generation

generate functionFri, 12 May 2023

Mostrar números no primos con while hasta el 99

def notPrimes(): n = 1 while n < 100: if n % 2 == 0 or n % 3 == 0 or n % 5 == 0 or n % 7 == 0: print(n) n += 1 notPrimes()

Questions about programming?Chat with your personal AI assistant