### How to print all odd number using c programming

## Print all odd number using c programming

Odd and Even number in c |

- ACM
- algorithm
- arduino project
- basic
- book
- c
- c basic
- c drive
- code
- computer
- database
- Gold winning Project
- google merchant account
- Homemade Robot
- homemade robotics projects
- homemade robots
- how to make a robot
- how to make homemade robot easy
- how to make robot
- how to make robot at home
- html
- internet
- IRO
- java
- learning java
- linked list
- mankind
- Microcomputer
- phone
- PHP MySql
- present
- programming
- shortcut
- star
- tips
- ubuntu
- unity
- voice control robot
- WordPress
- কম্পিউটার

gridpost/book

Odd and Even number in c |

Even and Odd number |

To print all even number from a range in c programming, we have to check all number between given range. To check if the number is odd or even number, we can use this following **logic**:

The rule is, if any number is fully divided by 2, then this number is even. Else the number is odd.

Even and Odd |

If we want to check whether the number 5 odd or even, we need to simply divide the number by 2.

If there is any reminder left, or if there is any value of 5 mod 2 left, that means 5 is not divisible by 2. So 5 is odd number.

We have discuss about the logic behind this code to solve our problem. If you missed the basic logical part, please go back and understand the logic and then try to code yourself.

Swap two number |

Subscribe to:
Posts (Atom)

Powered by Blogger.