Skip to content

easy fix for the parity for 7292 - #1

Open
BluRosie wants to merge 1 commit into
TheWilbo:masterfrom
BluRosie:master
Open

easy fix for the parity for 7292#1
BluRosie wants to merge 1 commit into
TheWilbo:masterfrom
BluRosie:master

Conversation

@BluRosie

@BluRosie BluRosie commented Jan 7, 2025

Copy link
Copy Markdown

when i input 7292, the output of the program is:

7292 is even: false

this pr aims to fix that

when i reference chatgpt:
image
so clearly, 7292 is an even number. another easy way to check is by running it through the geeks for geeks tutorial and checking it that way:
https://www.geeksforgeeks.org/program-to-find-parity/
you'll have to make a login for that though. this program also uses a somewhat unintuitive formula, but i've found that it agrees with all of the test cases i ran it through (integers 1-7291)

let me know if you have any questions!

@kyleh8892

Copy link
Copy Markdown

I have also experienced this issue, thank you for bringing it to light.

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