C++ Program to Print Simple Stars Through for loop

#include<iostream>

using namespace std;

void main()
{
for(int i=1;i<=4;i++)
{

for(int j=1;j<=6;j++)
{
cout<<"*";

}
cout<<"\n";
}


getchar();
}

No comments:

Post a Comment