Untitled
Anonymous
plain_text
07/02/2024 9:08 AM
388 B
21
Indexable
#include <iostream>
using namespace std;
int main()
{for (int i=0 ; i<=5 ; i++) {
for(int j=1 ; j<=6-i ; j++){
cout << ' ';
}
for(int j=1 ; j<2*i ; j++){
cout << '*';
}
cout<<endl;
}
return 0; }
Editor is loading...
Leave a Comment