Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int w, k;
- cout << "Liczba wierszy: ";
- cin >> w;
- cout << "Liczba kolumn: ";
- cin >> k;
- for(int i = 0; i < w; ++i)
- {
- for(int j = 0; j < k; ++j)
- {
- if(j < (k - i))
- cout << '#';
- else
- cout << '*';
- }
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment