please helpp program star

jjfjf
Last edited on
1
2
3
for(int i = 0, j = 6; i < 5; i++, j--){
  cout << setw(j) << "*\n" ;
}


a start :)
Last edited on
1
2
3
4
5
for(int i = 1, j = 9; i < 6; i++, j--){
   
  cout << setw(i) << "*" << setw(j) << "*" << "\n" ;
       j--;
}


now to figure out the bottom half :)
figure it out?
Topic archived. No new replies allowed.