Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int h;
- cout << "podaj wysokosc psi bolcu";
- cin >> h;
- cout << endl;
- for(int i=0;i<h-1;i++)
- {
- for(int a=0;a<h-i-2;a++)
- cout<<" ";
- for(int b=0;b<i*2+1;b++)
- cout<<"*";
- cout<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement