← Back to List

2440번: 별 찍기 - 3 ↗

Solutions

C++14
152 B | 152 chars
#include <iostream>
using namespace std;
int N;
int main()
{
	cin>>N;
	for(int x=N; x>-1; x--)
	{
		for(int y=0; y<x; y++) cout<<"*";
		cout<<endl;
	}
}