Advertisement
Guest User

Untitled

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