Prog#101: Print Even nos from 1 to 100

/* 
Program#101
Print Even nos from 1 to 100
*/

#include <stdio.h>
main(){
int i,a;
for(i=1;i<=100;i++){
a=i%2;
if(a)
printf("\nodd=%d",i);
else
printf("\neven=%d",i);
}
}