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