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

Update Exercise_07_29.java #41

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

Update Exercise_07_29.java #41

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Dec 5, 2019

I added an if statement because when (i + 1) = 13, it registers a king as 0 and you end with with a result like "Queen, 3, 9 King" which should total 37, but registers to the program as 4 cards that equal 24 because the 13 for the king is ignored, and is added to the sum as 0 instead.

I added an if statement because when (i + 1) = 13, it registers a king as 0 and you end with with a result like "Queen, 3, 9 King" which should total 37, but registers to the program as 4 cards that equal 24 because the 13 for the king is ignored, and is added to the sum as 0 instead.
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.

None yet

0 participants