0
Need help in this pattern
* * * * * * * * *
1 Odpowiedź
+ 2
#include <iostream>
#include <cmath>
using namespace std;
int main() {
for(int i=0;i<5;i++){
for(int j=abs(2-i);j>0;j--){
cout<<" ";
}
for(int k=abs(2-i);k<3;k++)
cout<<"* ";
cout<<endl;
}
return 0;
}