Learn to indent properly your code, it show its structure and it helps reading and understanding. It also helps spotting structures mistakes.
int num,even=0,odd=0;
do{
printf("enter number") scanf("%d",&num);
if(num÷2==0)
even+=1;
else
odd+=1;
printf("even number %d",even);
printf("odd number %d",odd);
Professional programmer's editors have this feature and others ones such as parenthesis matching and syntax highlighting.
Notepad++ Home[
^]
ultraedit[
^]
Note that your code will count -1 as an input value.