I am very new to C++ need to draw rectangle "JUST THE BORDER" using for loops, the below code draws three sides but i am not able to draw the right side line please help if anyone can.
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char *argv[])
{
const int NUM_ACROSS = 6;
const int NUM_DOWN = 8;
int row;
int column;
{
for(row = 0; row < NUM_ACROSS; row++)
cout << "* ";
for (column = 0; column < NUM_DOWN; column++)
cout << "\n*";
for (row = 5; row < NUM_ACROSS; row++)
cout << "\n";
for(row = 0; row < NUM_ACROSS; row++)
cout << "* ";
}
cout << endl;
system("PAUSE");
return EXIT_SUCCESS;
}