#include <stdio.h> int main(void) { int x; for(; scanf("%d",&x) > 0 && x != 42; printf("%d\n", x)); return 0;}
1#include <stdio.h> int main(void) { // your code goes here return 0; } 2 10 42 11
1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!