Untitled
unknown
c_cpp
2 years ago
307 B
9
Indexable
#include <iostream>
using namespace std;
int main() {
for (int i=0; i < 5; i++) {
for (int j = 0; j < 5 - i; j++)
{
cout << " ";
}
for ( int j = 0; j < i * 2 - 1; j++ )
{
cout << "*";
}
cout << endl;
}
return 0;
}Editor is loading...