- Joined
- Aug 27, 2005
- Messages
- 43,602
- Reaction score
- 26,256
- Location
- Houston, TX
- Gender
- Male
- Political Leaning
- Conservative
Having so much fun with Idiotic Mathematics in another thread, I thought I would start this one:
This algorithm is written in Delphi (or Pascal):
var i, j: integer;
hell_freezes_over, computer_crashes: boolean;
begin
{initialize}
i:=0; j:=1;
hell_freezes_over:=false;
computer_crashes:=false;
{now the fun begins }
repeat
i:=i+j;
until (hell_freezes_over OR computer_crashes),
{whichever comes first - LOL}
end.
This algorithm is written in Delphi (or Pascal):
var i, j: integer;
hell_freezes_over, computer_crashes: boolean;
begin
{initialize}
i:=0; j:=1;
hell_freezes_over:=false;
computer_crashes:=false;
{now the fun begins }
repeat
i:=i+j;
until (hell_freezes_over OR computer_crashes),
{whichever comes first - LOL}
end.