Life, the Universe, and Everything what is wrong

why my submision is wrong
#include<stdio.h>
int main()
{ int x;
do
{
scanf("%d",&x);
printf("%d",x);
}while(x!=42);
return 0;
}

//