• This is a political forum that is non-biased/non-partisan and treats every persons position on topics equally. This debate forum is not aligned to any political party. In today's politics, many ideas are split between and even within all the political parties. Often we find ourselves agreeing on one platform but some topics break our mold. We are here to discuss them in a civil political debate. If this is your first visit to our political forums, be sure to check out the RULES. Registering for debate politics is necessary before posting. Register today to participate - it's free!
  • Welcome to our archives. No new posts are allowed here.

Idiotic Computer Algorithms

danarhea

Slayer of the DP Newsbot
DP Veteran
Joined
Aug 27, 2005
Messages
43,603
Reaction score
26,254
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.
 

cnredd

Major General Big Lug
DP Veteran
Joined
Jul 5, 2005
Messages
8,682
Reaction score
262
Location
Philadelphia,PA
Gender
Male
Political Leaning
Slightly Conservative
Anybody remember that, according to Abbott & Costello, 13 x 7 = 28?...:cool:
 

xuiq

New member
Joined
Nov 7, 2005
Messages
41
Reaction score
0
Gender
Undisclosed
Political Leaning
Independent
Coding an OS and programs is demanding task and required you to be completely logical.
 

stsburns

American Infidel
DP Veteran
Joined
May 8, 2005
Messages
1,297
Reaction score
46
Location
Pergatory
Gender
Male
Political Leaning
Centrist
Linux shutdown progam. "killall" gets me every time. :lol:
 
Top Bottom