Skip to content

Conversation

@Funxal
Copy link

@Funxal Funxal commented Jan 19, 2023

No description provided.

Copy link
Owner

@davidinmichael davidinmichael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You did a very great job.
I love how you used the continue statement.

But, in TASKS/Task 003.c, check line 22, what if num%2 != 1?

@Funxal
Copy link
Author

Funxal commented Jan 19, 2023

``it's either 1 or 0
if userinput % 2 is not 1,it's 0 that even or odd
i fixed some but -123 is showing even, i don't know why

Copy link
Owner

@davidinmichael davidinmichael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You did good here, I'm impressed.
Why not try if userInput % 2 != 0

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.

2 participants