Tuesday 17/10/06

This is incredibly geeky, but I laughed quite hard after a lack of forsight while writing a computer program caused me to write:

while (k < p+1)

temp = temp + 0;

END

In essence, those lines tell the computer to test to see if a certain condition is true and, if it is, then not to do anything about it. Exactly the same function could (more efficiently) be coded:

.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: