hey, can you guys please help me figure out how to make an x shape. so far, all i can do is get the one diagonal side with the following code, but i can't get the other side. i'd really appreciate any help. i really suck at for loops.
thanks a lot
using namespace std;
cout<< "Enter a number: ";
while (number< 2 || number% 2 == 0)
cout << "Invalid response. Enter an odd number greater than or equal to 2:";
for( int lineNum=0; lineNum<number; lineNum++)
for (int i=0; i<number-lineNum; i++)