-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integer Reversal #5
Comments
How do you want the commit? |
def ReverseInt(number):
return str(number)[::-1]
inputnum = int(input("What number do you want to reverse?"))
print(ReverseInt(inputnum)) |
Assign Me to this issue (@xaster-Kies) |
Remember you have to take into consideration the sign. Your code fails on -ve numbers |
please assign me |
@Blanco237 You should rather do a commit and make a pull request. read the readme and try to follow up |
please senior are you assigning but everyday or when one is assign one time that's all |
Assign me @xaster-Kies |
Please go through the readme |
Assign me @xaster-Kies |
Done @janWICKEDpro |
Directions
Given an integer, return an integer that is the revers ordering of numbers while considering thier sign. Make use of functions where neccesory.
You can code this with any language of you choice!
Examples
reverseInt(15) === 51
reverseInt(981) === 189
reverseInt(500) === 005
reverseInt(-15) === -51
reverseInt(-90) === -90
The text was updated successfully, but these errors were encountered: