#include "stdafx.h" #include "iostream" using namespace std; int main() { int n; do { cout << "Enter a number = "; cin >> n; } while (n != 2); }
cin
istream
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)