Prog#052: Read & Display number until -1000 is given

/* 
Program#52
Read & Display number until -1000 is given.
*/

#include <stdio.h>
main(){
int n=0;
scanf("%d ",&n); 
while(n!=-1000){
printf("\n%d",n);
//sleep(10);
scanf("%d ",&n); //Here read() executed very fastly.so sleep happens after 2 reads-use strace
}
}