ITT: Dumb code that would actually (kinda) work
Nothing works, technology is fake
it wouldnt because when you got the time it would be todays time
>>51439264
No it's getting the time tomorrow not tomorrow's time
>>51439291
Technically he's also right, it wouldn't be tomorrow anymore, but "today"
>>51439321
when you give the order to "get the time tomorrow", the only term tomorrow that matters is the one you have when you start. The fact that this is an imperative language makes this the only correct interpretation.
>>51439321
note the (kinda)
>>51439338
>>51439225def add(x, y):
if x == 0:
return y
elif x < 0:
return add(x + 1, y - 1)
elif x > 0:
return add(x - 1, y + 1)
>>51439565
Mozilla coder detected
itt: coding the indian syle
>>51439565
actually that is fucking brilliant and works!
Why scrollbarsbool is_even(int x) {
if (x > 0) {
while (x > 0) {
x -= 2;
}
if (x == 0) {
return true;
}
else {
return false;
}
}
else if (x < 0) {
while (x < 0) {
x += 2;
}
if (x == 0) {
return true;
}
else {
return false;
}
}
else {
return true;
}
}
>>51439225int add(int a, int b)
{
do {
a ^= b;
b = (a ^ b) & b;
b <<= 1;
} while (b);
return a;
}
>>51439627
9edgy11me
>>51439742
http://stackoverflow.com/a/434562/4534861
>>51439637
>fucking brilliant
>CS 101 recursion homework