Skip to content

Instantly share code, notes, and snippets.

@CanoeFZH
Forked from clippit/gist:2118324
Created April 8, 2012 14:40
Show Gist options
  • Save CanoeFZH/2337649 to your computer and use it in GitHub Desktop.
Save CanoeFZH/2337649 to your computer and use it in GitHub Desktop.
Play a 24 Game with four 0s
#include <stdio.h>
int main() {
printf("%d\n", '0'/(('0'+'0')/'0'));
printf("%d\n", '0'>>'0'/'0'+0);
printf("%d\n", -~-~-~-~-~-~0-~-~-~-~-~-~0-~-~-~-~-~-~0-~-~-~-~-~-~0);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment