Odd number can not be divided by 2. The remainder after dividing an Odd number by 2 is one. For example . . . Odd numbers between 1 and 5 are 1,3,5. The below given C program is used to display (print) the odd numbers present in between 1 and 100. Kindly check out to display the odd numbers present in 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;

}

The odd numbers between 1 and 100 are

1

3

5

7

9

. . . .

- Questions and answers
- Download Pdf
- Answers
- Interviews

- Solved
- And College
- Antivirus Program

* C program to check even or odd using Bitwise Operator

* C program to find Sum of Odd Digits of a Number

* C program to find Sum of Even Digits of a Number

*
C program to find Sum of Even and Odd Digits of a
Number

*
C program to print Odd Digits of a
Number

* C
program to print Even Digits of a
Number

* C
program to display Odd numbers from the given N
numbers

* C
program to display Even numbers from the given N
numbers

* C program to check whether a number is odd or even.

*
C program to check odd or even using if else

* C program to check odd or even using switch
case

* C program to check odd or even using
function

* C program to check odd or even using Ternary
Operator

**About Er. T.Tharesh Kumar**

I am
a **Professor**
and
**Head of Department** of
Computer Science
**in** an
**Arts and Science
College**. I have designed this website to provide
solved example programs of different categories for all the school
and college going students to learn C language deeply, and to
practice Interview based Multiple Choice (Objective Type) questions
and answers.

**Other
Related
Popular
Posts :**

Odd or Even, Sum of Odd Digits, Sum of Even Digits, Sum of Even and Odd Digits,Display Odd digits, Display even digits, Display Odd Numbers,Display Even Numbers,Check Armstrong number, Armstrong numbers in Range, Armstrong numbers between 1 and 1000, check perfect number, perfect numbers in range, Check Prime number, Prime numbers between 1 and 100, Prime numbers in Range, Sum of Prime numbers, Check Strong number, Strong number in Range, Check polindrome number, Check polindrome number using for loop, Check polindrome number using Recursion, check polindrome string, Find Roots of Quadratic equation, Fibonacci Series, Fibonacci Series using an array, Fibonacci Series using while loop, Sum of Fibonacci Series, Factorial of Number, Factorial without using Recursion, Factorial using Pointers, Factorial using Function