Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n;
- cout<<"Unesite broj redova"<<endl;
- cin>> n;
- for(int i=0;i<n;i++)
- {
- cout<<"*";
- for(int k=0;k<i;k++) cout<<" ";
- for(int k=0;k<n+1-n;k++)cout<<"*";
- for(int k=0;k<n-1-i;k++) cout<<" ";
- for(int k=0;k<n-4;k++) cout<<"*";
- cout<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement