0

how we write program for this pattern??

**** *** ** *

26th Oct 2016, 4:22 PM
kamal
2 Answers
+ 1
Use for loops (inner loops) to print this pattern. Also there are n number of ways to print this pattern. Please don't expect the complete program here. Just try it and post here if you have any doubt.
26th Oct 2016, 4:43 PM
Venkatesh(Venki)
Venkatesh(Venki) - avatar
0
int i=4,j; for (i=1;i<=4;i++) { for (j=1;j<=5-i;j++) { cout<<"*"; } cout<<endl; }
27th Oct 2016, 2:25 AM
Gaurab Bhattacharya
Gaurab Bhattacharya - avatar