The following code should produce the following pattern it doesn't.
XXXXX
XXXXX
XXXXX
XXXXX
what code must be added to get the correct result?
#include <iostream>
#include <conio.h>
#include <process.h>
#include <string.h>
using namespace std;
int main()
{
int i,j;
for( i=1 ; i <=5 ;i++ ){
for( j=1 ; j <=5 ;j++)
cout<<" x" <<endl;
}
system ("pause");
return 0;