Page 4 of 5

Re: Humor

Posted: Mon Mar 25, 2019 4:27 am
by Royal

Re: Humor

Posted: Mon Mar 25, 2019 1:04 pm
by Pigeon
Sure. Pres Ego has to do his thing.

President "Beat A Dead Horse"

Who actually believes any of this stuff, found or not found, any more. It's good everything is peachy in our country otherwise we should be expecting something different from our leadership.

:)

Re: Humor

Posted: Thu Apr 25, 2019 8:00 am
by Royal
Image

Re: Humor

Posted: Fri Aug 09, 2019 8:31 pm
by Pigeon
Haha. Really.

The incrementer side effect

Image

Re: Humor

Posted: Sat Aug 10, 2019 1:26 am
by Royal
I think this is the nerdiest joke you ever posted.

Re: Humor

Posted: Sat Aug 10, 2019 1:39 am
by Pigeon
Do you see why I actually works. That guy needs a new line of work.

Re: Humor

Posted: Sat Aug 10, 2019 1:40 am
by Pigeon
There are strange loops and there are useless loops.

Re: Humor

Posted: Sat Aug 10, 2019 1:46 am
by Royal
You should break it down.

Re: Humor

Posted: Sat Aug 10, 2019 2:12 am
by Pigeon
Intended to return the square of a number

The parameter n is passed and is the number to square

There is a while loop with no termination condition

while(true)

It checks for the value of variable k to equal square of the past parameter to square

k == n*n

If true it returns k which is the square of n and leaves the loop

it starts k at 0 and each interration it is incremented by 1

So k eventually will match the square of n

It could just

return n*n

Basically a WTF?

I works but the guy doesn't even know why ( or what he is doing :) )

Re: Humor

Posted: Sat Aug 10, 2019 2:14 am
by Pigeon
It runs a loop for as many times as the value of the square result when it doesn't even need a loop.