answer (Проверка ввода)

#include "stdafx.h" #include <iostream> using namespace std; int main() { int input = 0; while (true) { cout <<endl <<"I want one!!!" ; cout << endl << "N = "; cin >>input; if (input == 1) break; else cout << endl << "Try again!!!"; } cout << endl << "Job is done!!!" <<endl; return 0; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.