Skip to content

Instantly share code, notes, and snippets.

@Jack2
Created November 7, 2012 15:16
Show Gist options
  • Save Jack2/4032186 to your computer and use it in GitHub Desktop.
Save Jack2/4032186 to your computer and use it in GitHub Desktop.
[C++]do_while_example
#include <iostream>
using namespace std;
int main(){
int soo;
do{
cout << "If you want to exit then you press 1 : " ;
cin >> soo;
} while(soo != 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment