fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int limit;
  7. cin >> limit;
  8.  
  9. for (int i = 1; i <= limit; i++) {
  10. for (int j = i; j <= i; j++) {
  11. cout << "o";
  12. }
  13. cout << "\n";
  14. }
  15. }
Success #stdin #stdout 0.01s 5320KB
stdin
4
stdout
o
o
o
o