#include <iostream>
using namespace std;
int main() {
char out[] = "50";
unsigned int x = 0;
while (true) {
cout << "Сколько раз вывести " << out << ": ";
cin >> x;
if (x) {
break;
}
for (unsigned int i = 0; i < x; i++) {
cout << out;
cout << endl;
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main() {
char out[] = "50";
unsigned int x = 0;
while (true) {
cout << "Сколько раз вывести " << out << ": ";
cin >> x;
if (x) {
break;
}
}
for (unsigned int i = 0; i < x; i++) {
cout << out;
}
cout << endl;
return 0;
}