Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The answer to the ultimate question of life, the universe and everything, is 42.
- !The Algorythm
- #include <stdlib.h>
- #include <limits.h>
- #define SECONDS_IN_A_YEAR 31557600LL
- void wait(long long int seconds){
- while (seconds >0){
- int s=seconds > int_max ? int_max : seconds;
- sleep(s);
- seconds -= s;
- }
- }
- int deep_thought(){
- wait(7500000LL * SECONDS_IN_A_YEAR);
- return 42;
- )
- int main (){
- printf("The answer to the ultimate question of life, the universe,"
- " and everything is %d", deep_thought.());
- return EXIT_SUCCESS;
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement