Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdio>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     int N;
  8.     cin >> N;
  9.     for (int i = 0; i < N; i++) {
  10.         for (int j = 0; j < i; j++) {
  11.             cout << ' ';
  12.         }
  13.         for (int j = 0; j < N - i; i++) {
  14.             cout << '*';
  15.         }
  16.         cout << endl;
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement