Skip to content

Commit

Permalink
Update ex5_19.cpp
Browse files Browse the repository at this point in the history
While condition now accepts an uppercase letter as well.
  • Loading branch information
GatisO committed Dec 1, 2015
1 parent 40b60e0 commit 42cd49b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch05/ex5_19.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ int main()
<< " is less than the other. " << "\n\n"
<< "More? Enter yes or no: ";
cin >> rsp;
} while (rsp == "y" || rsp == "yes");
} while (tolower(rsp[0]) == 'y');
return 0;
}

0 comments on commit 42cd49b

Please sign in to comment.