Question #1284
Write a program to print&
& & & & & & & & & & *
& & & & & & & & * & & *&
& & & & & & & * & & * & & *
& & & & & * & & * & & * & & *
1
Expert's answer
2011-01-06T11:39:34-0500
#include <iostream>#include <stdlib.h>using namespace std;int main () {    for (int i=0; i<4; i++)    {        for (int j=0; j<3-i; j++)               cout<<" ";        for (int k=0; k<i+1; k++)               cout<<"* ";           cout<<endl;    }            system("pause");    return 0;}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS