#include <stdio.h>#include <stdlib.h> int main(){ int x; do { scanf("%d",&x); printf("%d",x); } while(x!=42) return 0;}
Standard input is empty
prog.c: In function 'main': prog.c:15:5: error: expected ';' before 'return' return 0; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!