lundi 18 octobre 2021

program which will find all such numbers which are divisible by 7 but are not a multiple of 5, between 2000 and 3200 .do with while.not getting result

number = 2000

while number <= 3200:
    if ((number / 7) == 0) and ((number % 5) == 0):
        print(number)
    else:
        True

    number = number + 1

Aucun commentaire:

Enregistrer un commentaire