Marcel Kilgus wrote, on 26/Nov/10 18:09 | Nov26:
Tony Firshman wrote:
and CTRL SPACE after 100.

Cheater! ;-) Also, one can only run your program once.

This meets all Rich's requirements:
----------
The rules are simple -
write out the values 1 to 100 on screen
If the value is divisible by 3 write 'FIZZ' after the number
If the value is divisible by 5 write 'BUZZ' after the number
If the value is divisible by 3 and 5 write 'FIZZBUZZ' after the number
----------
Nothing about having to stop at 100 (8-)#

Okay, if you want to get creative with the rules:

1i=0
2i=i+1:print i,"FIZZBUZZ":goto 2

There's nothing about NOT printing FIZZ if the number is not divisible
by 3 etc.! :-P

I obeyed the rules (8-)#
... and there is nothing to say the program has to be run more than once.
I did considering initialising and it would still have been under 89.

Tony

--
QBBS (QL fido BBS 2:257/67) +44(0)1442-828255
       [email protected]     http://firshman.co.uk
Voice: +44(0)1442-828254 Fax: +44(0)1442-828255 Skype: tonyfirshman
    TF Services, 29 Longfield Road, TRING, Herts, HP23 4DG
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to