Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int j,k,i,a;
  7.  
  8. cin >> a;
  9.  
  10. for(i=1; i<=a;i++)
  11. {
  12. for(j=i; j<a;j++)
  13. {
  14. cout << " ";
  15. }
  16. for(k=0; k<i;k++)
  17. {
  18. cout << "# ";
  19. }
  20.  
  21. cout << endl;
  22.  
  23. }
  24.  
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement