Skip to content
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

MuthoniMN - Michelle #111

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

MuthoniMN - Michelle #111

wants to merge 1 commit into from

Conversation

MuthoniMN
Copy link

Summary

This PR solves the first challenge which entails creating a function that takes in an integer and reverses it while maintaining their state(positive/negative)

Process

  1. created a function that takes an integer as a parameter
  2. check if the number is >= 0
  3. converted to array then reversed it
  4. converted it back to a number

Link to Issue

#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant