05-09-2003, 07:45 AM
oh...yeah..... that one. oh... oh..... ok..... i'll just slap myself on the head.
or with string$ um I guess:
Well I really ruined this guy's future career in CS by giving him the answer, didn't I?
EDIT: made length width and added a chr$(32).
Code:
INPUT "What width and height do you want? ", A%, B%
FOR I% = 1 to A%
FOR J% = 1 to B%
PRINT "*"; 'If you don't have the ;, QBASIC will automatically add a carriage return (skip to the next line)
NEXT J%
PRINT
NEXT I%
or with string$ um I guess:
Code:
INPUT "What width and height do you want? ", A%, B%
FOR I% = 1 to A%
PRINT STRING$(B%, "*")
NEXT I%
Well I really ruined this guy's future career in CS by giving him the answer, didn't I?
EDIT: made length width and added a chr$(32).
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Visit www.neobasic.net to see rubbish in all its finest.