C Program to print even or odd numbers from a given number.

Hey there!

Welcome to ClearUrDoubt.com.

I would recommend you to go through the below post before you continue with this.

C Program to find whether a number is even or odd.

In this post, we will look at a C program to print a range of even or odd numbers from a given number.

This can be achieved using any of the below iterative statements in C.

  1. do-while loop
  2. while loop
  3. for loop

We will use the do-while loop and print the even/odd numbers:

Here is the C program:










Happy Learning! 🙂

Please leave a reply in case of any queries.

Leave a Reply

Your email address will not be published. Required fields are marked *