int a, b;
char answer = 'Y';
while (answer != 'N'&&answer != 'n')
{
}
system("pause");
char answer = 'Y';
while (answer != 'N'&&answer != 'n')
{
cout << "Enter first digit:";
cin >> a;
cout << "Enter second digit:";
cin >> b;
cout << "Summ = " << a + b << endl;
cout << "\nContinue (y,n):";
cin >> answer;
system("cls");//очистка экрана
}
system("pause");
Комментариев нет:
Отправить комментарий