Prog#050: while loop- Prints Odd & Even numbers between given range

/* 
Program#50
while loop- Prints Odd & Even numbers between given range
*/

#include <stdio.h>
main(){
int a,b,c=0;
printf("Enter two numbers :");
scanf("%d %d",&a,&b);
while(a<=b){
c=a%2;
if(!c)
printf("\n Even no:%d",a);
else
printf("\n odd no:%d",a);
a=a+1;
}
}