#include <iostream>
void fir(int n) {
int cnt = 1;
for (int i = 0; i < n; i++) {
for (int j = 0; j < cnt; j++)
std::cout << "o";
std::cout << std::endl;
cnt+=2;
}
signed main() {
int N;
std::cin >> N;
fir(N);
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
void fir(int n) {
int cnt = 1;
for (int i = 0; i < n; i++) {
for (int j = 0; j < cnt; j++)
std::cout << "o";
std::cout << std::endl;
cnt+=2;
}
}
signed main() {
int N;
std::cin >> N;
fir(N);
return 0;
}