Ответ:
На C++
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int n;
cin >> n;
for (int k = 1; k <= n; k++) {
int m = min(100, k * k);
for (int i = 0; i < m; i++) {
cout << "*";
}
if (k * k > 100) {
cout << "..." << endl;
} else {
cout << endl;
return 0;
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
На C++
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int n;
cin >> n;
for (int k = 1; k <= n; k++) {
int m = min(100, k * k);
for (int i = 0; i < m; i++) {
cout << "*";
}
if (k * k > 100) {
cout << "..." << endl;
} else {
cout << endl;
}
}
return 0;
}