64 642
Assignments Done
99,2%
Successfully Done
In September 2018

Answer to Question #1284 in C++ for arshad

Question #1284
Write a program to print&
& & & & & & & & & & *
& & & & & & & & * & & *&
& & & & & & & * & & * & & *
& & & & & * & & * & & * & & *
Expert's answer
#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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions