Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include <iomanip>
- using namespace std;
- int main() {
- char x [20][20];
- int i,j,N;
- cout<<"Unesite broj redova i kolona"<<endl;
- cin>>N;
- cout<<"Upisali ste niz"<<endl;
- for (i=0;i<N;i++)
- {
- for(j=0; j<N; j++)
- {
- x[i][j]='*';
- }
- cout<<endl;
- }
- for(i=0; i<N; i++)
- {
- for(j=0; j<N; j++)
- {
- cout<<"*";
- }
- cout<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement