Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 03 / Tasks and Solutions / 10. Pyramid.cpp
blob: 5d9e2a9e97138f30b3f50adb900ee3e29c85fcee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
using namespace std;

int main()
{
	int n;
	cin >> n;
	for (int i = 1; i <= n; i++)
	{
		for (int j = 1; j <= i; j++)
			cout << "$";
		cout << endl;
	}
}