It might be better to move your printf() outside. Something like this:
Code:
printf("\n%s\n", code>1?"jerusalim":code>1?"Eddie":"Brain");
You should also get rid of the \n in your scanf() format string. I tested the code I just showed and it works fine.