Write a program using two for loops to produce the following pattern of asterisks
********
********
********
********
#include <iostream>
using namespace std;
int main()
{
for(int i=0;i<4;i++)
{
for(int j=0;j<8;j++)
{
cout<<"*";
}
cout<<endl;
}
}
Comments
Leave a comment