#include <stdio.h> int main() { if (fork() || fork() && fork())printf("GM\n");elseprintf("GE\n"); return 0; }
Standard input is empty
GM GM GE GE
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!