Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include<iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6. char x [20][20];
  7.  
  8. int i,j,N;
  9. cout<<"Unesite broj redova i kolona"<<endl;
  10. cin>>N;
  11. cout<<"Upisali ste niz"<<endl;
  12. for (i=0;i<N;i++)
  13. {
  14. for(j=0; j<N; j++)
  15. {
  16. x[i][j]='*';
  17. }
  18. cout<<endl;
  19. }
  20. for(i=0; i<N; i++)
  21. {
  22. for(j=0; j<N; j++)
  23. {
  24. cout<<"*";
  25. }
  26. cout<<endl;
  27. }
  28.  
  29. return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement