From a8609ccd901b1942e862c14205026d841e640add Mon Sep 17 00:00:00 2001 From: EliteTK Date: Thu, 10 Jul 2014 22:35:35 +0100 Subject: More stuff. --- overcomplicated_loop.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 overcomplicated_loop.c (limited to 'overcomplicated_loop.c') diff --git a/overcomplicated_loop.c b/overcomplicated_loop.c new file mode 100644 index 0000000..a843a8a --- /dev/null +++ b/overcomplicated_loop.c @@ -0,0 +1,27 @@ +#include +#include +#include +#include + +static jmp_buf env; + +int main (void) +{ + srand(time(NULL)); + int a = 0; + while (a == 0) { + a += rand() * time(NULL); + float c = 1 / a; + + for (int b = 20; !setjmp(env); b -= 21) { + if ((a / b) < 20) + c *= c; + + if (c == a) + longjmp(env, 0); + /* + * Your code here. + */ + } + } +} -- cgit v1.2.3-54-g00ecf