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

Performance fix #34

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Performance fix #34

wants to merge 2 commits into from

Conversation

jadonyack
Copy link
Contributor

Can't have performance issues if the program doesn't accept problematic values!

welcome.cpp Outdated
@@ -45,8 +45,18 @@ int main(int argc, char *argv[]) {
std::cout << "Input your first favorite number: \n";
int inputNumber1, inputNumber2;
std::cin >> inputNumber1;
while(inputNumber1 > 25) {
Copy link
Contributor

Choose a reason for hiding this comment

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

why 25 and not 22

magic number moment

welcome.cpp Outdated
std::cout << "Input your second favorite number: \n";
std::cin >> inputNumber2;
while(inputNumber2 > 25) {
Copy link
Contributor

Choose a reason for hiding this comment

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

see above

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