Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- using namespace std;
- int main(int argc, char** argv) {
- /* cout<<"#";*/
- int i,j,h,a,x;
- cout<<"podaj wysokosc";
- cin>>h;
- x=h;
- for(j = 0; j < (h*2); j=j+2)
- {for(a=1 ;a<x;a++)
- cout<<" ";
- for(i = 0; i <= j; i++)
- cout << "#";
- x--;
- cout << endl;}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement