0 Members and 4 Guests are viewing this topic.
while(oreo) oreo--;
while(time_until_test_minutes > 240) procrastinate;freak_out();
Oh yes, most definitely. Code: [Select]while(time_until_test_minutes > 240) procrastinate;freak_out();
Today I learnt something : life is made of algorithms. I discovered one today, being a student in my own appartment :Code: [Select]while(oreo) oreo--;Did you discover things like this ?
oreoPurchase := 3oreoEaten := 0hospital :=0WHILE 1 DOoreoEaten = oreoEaten + 1;oreoPurchase = oreoPurchase ^ 2;IF oreoEaten > 256 THENhospital := 1;END;END;
while(1): if(time()<0600): sleep(0400); for task in todo: if task.due < time(): panic() elif task.due - time() < 200: panicdo(task) else: sleep(0200)
Quote from: Matrefeytontias on November 10, 2014, 02:30:36 pmToday I learnt something : life is made of algorithms. I discovered one today, being a student in my own appartment :Code: [Select]while(oreo) oreo--;Did you discover things like this ?Assuming you mean Oreo biscuits, I think the following would be closer to reality Code: [Select]oreoPurchase := 3oreoEaten := 0hospital :=0WHILE 1 DOoreoEaten = oreoEaten + 1;oreoPurchase = oreoPurchase ^ 2;IF oreoEaten > 256 THENhospital := 1;END;END;
Oh yes, most definitely. Code: [Select]while(time_until_test_minutes) procrastinate;go_to_test_unprepared_but_perfectly_cool();
while(time_until_test_minutes) procrastinate;go_to_test_unprepared_but_perfectly_cool();
Quote from: DJ Omnimaga on November 11, 2014, 02:27:21 amQuote from: Matrefeytontias on November 10, 2014, 02:30:36 pmToday I learnt something : life is made of algorithms. I discovered one today, being a student in my own appartment :Code: [Select]while(oreo) oreo--;Did you discover things like this ?Assuming you mean Oreo biscuits, I think the following would be closer to reality Code: [Select]oreoPurchase := 3oreoEaten := 0hospital :=0WHILE 1 DOoreoEaten = oreoEaten + 1;oreoPurchase = oreoPurchase ^ 2;IF oreoEaten > 256 THENhospital := 1;END;END;Well... that escalated quickly ^^'
And in HP PPL it escalates instantly. The speed at which ClassPad II Basic gets executed might be closer to reality.
oreoPurchase := 3oreoEaten := 0hospital :=0BEGIN f() oreoPurchase = oreoPurchase ^ 2; oreoEaten := oreoEaten+1; END;MAKELIST(f(), O, 0, 255);hospital := 1;END;
#include "streetwalrus.h"#include <life.h>#include <time.h>int main(void){ while (streetwalrus_alive) { day_spend(geeky_stuffs); sleep(INSANELY_LATE_HOUR); } // Hopefully we don't reach this point anytime soon return streetwalrus_age;}
Lbl 1SleepGoto 1
While it's the hour before school startsDo homeworkEnd
while(pimath_is_on_computer) checkOmnimaga();