subject

TOPIC-PYTHON

In the below code why r=0 and please explain r=r*10+d

s=int (input("Enter any number:"))
r=0
while (s>0):
d=s%10
r=r*10+d
s=s//10
print ("reverse",r)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 23:30
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
question
Computers and Technology, 25.06.2019 08:00
True or false: a power supply is an electrical transformer that regulates the electricity used by the computer.
Answers: 1
question
Computers and Technology, 25.06.2019 13:00
What are the different components of the cloud architecture?
Answers: 1
question
Computers and Technology, 25.06.2019 20:30
Solve the following quadratic equation y=6x^2-12x+1
Answers: 1
You know the right answer?
TOPIC-PYTHON

In the below code why r=0 and please explain r=r*10+d

s=int (...
Questions
question
History, 24.04.2020 18:19
question
Mathematics, 24.04.2020 18:19
Questions on the website: 13722359