Skip to content

Instantly share code, notes, and snippets.

@zigphroid
Created February 5, 2012 17:17
Show Gist options
  • Save zigphroid/1746657 to your computer and use it in GitHub Desktop.
Save zigphroid/1746657 to your computer and use it in GitHub Desktop.
c++ while loop
char yn;
while (yn != n) {
// ask user things, do math stuff
cout << "Continue? (y/n): ";
cin >> yn;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment