Well, first of all, you're using preprocessor calls where you shouldn't. Second of all, you need to pass a pointer to num to scanf(). The code should look like this:
Code:
#include <stdio.h>
int main()
{
int num;
printf("\nEnter a number between 1 to 10:");
scanf("%d",&num);
if(num == 1)
printf("\nyou insert %d",num);
else if(num == 2)
printf("\nyou entered %d",num);
else
printf("\nyou entered except 1&2\n");
return 0;
}
note: for future reference, please post code inside [ code] and [ /code] tags for readability's sake.