fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int n;
  7. cin >> n;
  8.  
  9. for ( int i =1;i<=n;i+=1)
  10. {
  11. for(int s = n ;s <n &&s>0;s-=1 )
  12. {
  13. cout << " " << endl;
  14. }
  15. for( int j =1 ;j>2;j+=2)
  16. {
  17. cout << "*" << endl;
  18. }
  19.  
  20.  
  21.  
  22.  
  23.  
  24. }
  25.  
  26. }
  27.  
Success #stdin #stdout 0.01s 5288KB
stdin
4
stdout
Standard output is empty