gdgqler wrote:
> Another 1988 winning entry was as follows according to Peter van der Linden.
Though one must say that these programs are usually not written this
way, they're written more readable and obfuscated afterwards,
sometimes even using specialized obfuscation programs.
In any case, here's a C68 compatible entry:
#include<stdio.h>
main(){int i=0;while(i++<100)printf("%i %s%s\n",i,i%3?"":"FIZZ",i%5?"":"BUZZ");}
Pretty straight forward and not really original, but still not that
easy to beat I guess.
On the web there are mighty crazy FIZZBUZZ programs available, but
they use slightly different rules in that they do not print the number
if FIZZ, BUZZ or both are written, which makes things a bit more
complicated.
Marcel
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm