lol
Sun Oct 15 2023 14:32:53 GMT+0000 (Coordinated Universal Time)
Saved by
@yolobotoffender
#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main(){
for(int r=1;r<=9;r++){
for(int s=0;s<=r-1;s++){
cout<<' ';}
for(int c=1;c<=(11-2*r);c++){
if(r==1 || r==9) cout<<'*';
else if(c==1 || c==(11-2*r)){cout<<'*';}
else cout<<' ';
}
cout<<endl;
}
return 0;
}
content_copyCOPY
Comments