Expand|Select|Wrap|Line Numbers
- #include <iostream>
- #include <iostream>
- #include <string>
- #include<cctype>
- using namespace std;
- int main()
- {
- int i,j,k;
- for(i=0; i<8; i++)
- {
- for(j=0;j<i;j++)
- {
- cout<<'\t'<<"*";
- }
- for(k=0;k < 16; k= k+2){
- cout<<endl;
- }
- }
- for(i=7; i>=0; i--)
- {
- for(j=i;j>=0;j--)
- {
- cout <<'\t'<<"*";
- }
- for(k=14;k >0; k= k-2){
- cout<<endl;
- }
- }
- system("PAUSE");
- return 0;
- }
*
* *
* * *
* *
*
i want the first star to be in the middle and then in the second row two stare also in the middle uder the first star which means the first star look in between then ... i hope u can help me guys