When I input any number that is neither a multiple of 2 nor 5, the output is still the one I set for the first if statement
num = int(input("Enter a number: ")) if num%2 or num%5: print(num) else: print("Not a multiple")
Aucun commentaire:
Enregistrer un commentaire