Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std ;
  3.  
  4.  
  5. void drsq (int n )
  6. {
  7.  
  8. for ( int i = 0 ; i < n*n ; ++ i)
  9. {
  10. cout<< "#" ;
  11. if ( i % n == 0) cout<< endl ;
  12.  
  13. cout << endl ;
  14. }
  15. }
  16.  
  17.  
  18.  
  19.  
  20. int main ()
  21. {
  22. int n ;
  23. cin >> n ;
  24. drsq (n) ;
  25. return 0 ;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement