C program to display odd numbers between 1 and 100

C program to display odd numbers between 1 and 100

C program to display odd numbers between 1 and 100

#include<stdio.h>

int main(){

int rem,i;

printf(“\n The odd numbers between 1 and 100 are \n”);

for(i=1; i<=100; ++i){

rem = i % 2;

if(rem != 0)

printf(“\n  %d”,i);

}

return 0;

}

 

For any query or issue, feel free to discuss on http://discuss.eduguru.in