fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int n =5;
  7.  
  8. for(int i=1;i<=n+4;i++){
  9. for(int j=1;j<=n;j++){
  10. if(j==n){
  11. cout<<"#";
  12. }
  13. }
  14. cout<<endl;
  15.  
  16. }
  17.  
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
#
#
#
#
#
#
#
#
#