Код:
#include<iostream>
#include<string>
#include<cstdlib>
#include<windows.h>
using namespace std;
int main(){
char i[3];
char t = '1';
while (t != '0'){
cout << "Hello"<<endl;
cin >> i[3];
if (i[0] == '0'){
t = '0';
}
}
return 0;
}