0

Need help in this pattern

* * * * * * * * *

10th Nov 2016, 8:30 PM
Dhruv Saxena
Dhruv Saxena - avatar
1 Resposta
+ 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; }
11th Nov 2016, 2:14 AM
kamal joshi
kamal joshi - avatar