+ 4
How to print reverse of all odd numbers from 50 to 100 in python
35 Réponses
+ 7
I have done in this way
..
https://code.sololearn.com/cf0gU48qNebO/?ref=app
+ 6
I have tried this-----
sum=0
for n in range(50,100):
if n%2!=0:
while n!=0:
digit=n%10
sum=sum*10+digit
n=n//10
print(sum)
+ 3
Do you mean like this ?
https://code.sololearn.com/cEJ272xDi42p/?ref=app
+ 3
I mean reverse of digits should be the output. For example for 51...15 should be printed
+ 2
I have tried but fail to print
+ 2
https://code.sololearn.com/cQBS2QmWk87k/?ref=app
Here i've solved it
+ 2
I will sure complete my course.But would you plz tell me for the time that how to code for this
+ 2
odd...
for i in range(99,50,-2):
print(i)
+ 2
How to reverse word in C e.g "Hello"
+ 1
I wants 15,35,55,75.....in place of 51,53,55,57......
I need reverse of digits of number
+ 1
Thank you RAJESH SAHU
+ 1
Hey man it's simple
Use this trick
https://code.sololearn.com/c9SS8clqjRIf/?ref=app
+ 1
[print(i) for i in range(99,50,-2)]
+ 1
Try using the .split() function and do str(list[1]) + str(list[0])
+ 1
Suman wants to output the reverse of the odd num in [50, 100]. How to calculate the reverse of a num is also showed in code.
https://code.sololearn.com/cHH30opLBqE2/?ref=app
+ 1
I've done it in this way
https://code.sololearn.com/cQ63YgH7DB8Z/?ref=app
0
Well you should complete the python course
0
Do you mean 100 to 50... like 100, 98, 96...?
if yes...heres the code
for i in range(100,49,-2):
print(i)
0
oh 😅...
then the code would be...
for i in range(100,49,-1):
print(i)
0
Thanks Eashan Wantu but this is not what i want