Skip to content

Instantly share code, notes, and snippets.

@keehyun2
Created January 18, 2018 10:03
Show Gist options
  • Save keehyun2/02ab84bc088bd6ce1c3674fc03b2b3bf to your computer and use it in GitHub Desktop.
Save keehyun2/02ab84bc088bd6ce1c3674fc03b2b3bf to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string>
using namespace std;
int main()
{
int N = 0;
cin >> N;
for (int i = 0; i < N; i++)
{
for (int j = 0; j < N; j++)
{
if (i > j)
{
cout << " ";
}
else
{
cout << "*";
}
}
cout << endl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment