[ create a new paste ] login | about

Link: http://codepad.org/AvBcGf1o    [ raw code | output | fork ]

C++, pasted on Dec 22:
#include <iostream>

using namespace std;

void drawRectangle( int l, int h )


{
     for ( int column (0); column < l; column++ )

     {
         for ( int line (0); line < h; line++ )
     }


    {
        cout << "*";
    }

     cout<<endl;
}

int main()
{
int length, height;
cout << "Length for rectangle : ";
cin >> length;

cout << "Height for rectangle : ";
cin >> height;

drawRectangle(length, height);

return 0;
}


Output:
1
2
3
In function 'void drawRectangle(int, int)':
Line 13: error: expected primary-expression before '}' token
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: