dimanche 31 janvier 2021

I want to input a variable and print the numbers descending till this variable becomes 1 is there a python loop condition [closed]

Make a variable called num, which is an input that accepts a specific number from the person, make sure that the number is its type and that it is greater than 0, and if it is not greater than 0, print a message stating that after entering the number, print the number smaller than it directly, the smallest then the smallest until it reaches the number 1 must not Printing the number itself and not printing the number 0 If the numbers contain the number 6, do not print it from among the numbers After finishing the numbers, print a message stating that all numbers have been printed successfully with writing how many numbers have been printed

Aucun commentaire:

Enregistrer un commentaire