1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 #include <string> #include <iostream> #include <conio.h> using namespace std; int main() { int ch; int i; ch = getch(); i = 0; cout << "vvedite chislo:"; while ( ch != 27){ i++; cin>>i; } getch(); return 0; }