Control Statements Part 2
what will this code print, if anything?
#include
"stdafx.h"#include
<iostream>using
namespace std;
int
main (){
for (int i = 1; i<11;i++)
{
for (int j = 1; j < 10; j++)
{
if ((j == i)||(j==10-i))
cout<<"x";
else
cout <<" ";
}
cout <<endl;
}
return 0;
}