Question #284712

Write a program using two for loops to produce the following pattern of asterisks



********

********

********

********


Expert's answer

#include <iostream> 

using namespace std;

int main()
{
	for(int i=0;i<4;i++)
	{
		for(int j=0;j<8;j++)
		{
			cout<<"*";
		}
		cout<<endl;
	}
}

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!

LATEST TUTORIALS
APPROVED BY CLIENTS