Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- int h = 0;
- cout << "podaj h" << endl;
- cin >> h;
- for (int i = 0; i < h * 3; i += 3) {
- for (int j = 0; j <= i / 3; j++) {
- cout << i + (3 * j) << " ";
- }
- cout << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement