Computer Science, asked by jassu5169, 11 months ago

write a python program which reads a number from input (like 123).you make the assumption that the user does not enter a decimal number(like 123.4).the number entered by the user should not be divisible by 10 and if the user enters a num.that that is divisible by 10 (like560).it is considered invalid and the application should keep asking until the user enters a valid input.once the user enters a valid input the program...plz reply fast and help me​


hydrahyper27: what is the required output if user enters a valid input
jassu5169: plz check my question

Answers

Answered by Sahasramouli
1

Answer:

a=int(input("enter a number:"))

while a%10==0:

print('The number should not be divisible by 10')

a=int(input("enter a number:"))

Answered by QwertyPs
1

Hêy Fríèñd...

Here is the Program...

.

.

.

.

.

I Hope This Will Help You ◉‿◉

Attachments:

jassu5169: thanx a lot frnd...can you give answer other 2
Similar questions