Monday, December 10, 2007

How to draw a char with nested for-loop

How to draw a char with nested for-loop

To draw a char with nested for-loop

#include

int main( )

{ int w,length, width;

char plan;

cout << "How long you want to draw ? :";

cin >> length;

cout << "How width you wanted to draw ? : ";

cin >> width;

cout << "Please Enter An SYMBOL for the plan : ";

cin >> plan;

for (int i = 0; i

{ for (w = 0; w

cout <<>

cout << "\n";

}

return 0;

}

Result :

No comments: