Untitled

he
Anonymous
c_cpp
11/16/2023 5:03 PM
292 B
13
Indexable
#include <iostream>
using namespace std;

int main()
{
	int size, c = 0;
	cin >> size;

	for (int i = 0; i < (size + 1); i++) {
		for (int j = 0; j < i; j++) {
			cout << '*';
		}
		cout << "\n";
	}
}

Editor is loading...
Leave a Comment