Answer to Question #284712 in C++ for papi

Question #284712

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



********

********

********

********


1
Expert's answer
2022-01-10T02:09:30-0500
#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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog