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