ZOMG RECTANGLES!
Posted: Thu Jul 05, 2007 2:26 am
Code: Select all
/*
ZOMG RECTANGLES!1!!1!!1
Richard Ward
((Why am I not doing one of the 2384092834 programs that I should be?))
*/
#import <iostream>
using namespace std;
int main()
{
int length, width;
cout << "ZOMG RECTANGLE! Insert in the length and width..." << endl;
cout << "Lenth: ";
cin >> length;
cout << "Width: ";
cin >> width;
system ("cls");
cout << "+";
for (int i = 0; i<=length; i++)
cout << "--";
cout << "+" << endl;
for (int i=0; i<=width; i++)
{
cout << "|";
for (int j=0; j<=length; j++)
cout << " ";
cout << "|" << endl;
}
cout << "+";
for (int i = 0; i<=length; i++)
cout << "--";
cout << "+" << endl;
cout << "ZOMG RECTANGLE!!!" << endl;
system ("pause");
}