I am writing a program to make a coordinate plane with a for loop but it is giving me some grief...
i am trying to draw this:
" ^ "
with:
for (int i = 0; i <= 10; i++)
{
if (i < 5) cout << " ";
if (i = 5) cout << "^";
if (i > 5) cout << " ";
}
but they output is:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^