Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int i,j,n;
- cout << "Podaj liczbe n "<< endl;
- cin >> n;
- cout << endl;
- for (i=1;i<=n;i++)
- {
- for(j=1;j<=n-i;j++)
- {
- cout << "";
- }
- for (j=n-i+1;j<=n;j++)
- {
- cout << "*";
- }
- cout << endl;
- }
- cout<< endl;
- system ("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement