Wednesday, 20 January 2016

// // Leave a Comment

SQUARE

C++ Program  to print square stars 5 times 

#include<iostream>
using namespace std;
int main()
{

for( int i = 1; i <= 5; ++i ) 
 for( int j = 1; j <= 4; ++j ) 
  { 
  for( int k = 1; k <= 4; ++k ) 
   cout << '*'; 
cout << endl; 
 } 
  cout << endl; 
   }
   system("pause");
}

*------------------------------------------------------------------------------------------------------*




0 comments:

Post a Comment