Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6.  
  7. int h;
  8.  
  9. cout << "podaj wysokosc psi bolcu";
  10. cin >> h;
  11. cout << endl;
  12.  
  13. for(int i=0;i<h-1;i++)
  14. {
  15. for(int a=0;a<h-i-2;a++)
  16. cout<<" ";
  17. for(int b=0;b<i*2+1;b++)
  18. cout<<"*";
  19.  
  20. cout<<endl;
  21.  
  22.  
  23.  
  24.  
  25.  
  26. }
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement