Thursday, July 20, 2017

C Program to Check if a given Integer is Odd or Even

This C Program checks if a given integer is odd or even. Here if a given number is divisible by 2 with the remainder 0 then the number is even number. If the number is not divisible by 2 then that number will be odd number.

Below is Programming Codes...
  1. /*
  2.  * C program to check whether a given integer is odd or even
  3.  */
  4. #include <stdio.h>
  6. void main()
  7. {
  8.     int ival, remainder;
  10.     printf("Enter an integer : ");
  11.     scanf("%d", &ival);
  12.     remainder = ival % 2;
  13.     if (remainder == 0)
  14.         printf("%d is an even integer\n", ival);
  15.     else
  16.         printf("%d is an odd integer\n", ival);
  17. }
Read More ->>
  • MBT Icons and buttons

    Icons and Buttons

    Our resources have been successfully downloaded over 10K times and found almost every where. Get yours!

  • choosing webhost for a blog

    Why HostGator?

    Learn Why we chose HostGator as our Web Host and find discount coupons to kick start your blog today!

  • SEO Settings for blogger


    Learn every single SEO tip that will boost your blog's ranking and organic traffic. We got them all!

  • Blogger widgets and plugins

    Visit MBT's Blogger LAB

    Why not take a tour of all great Blogger widgets published so far? You Name it we have it!

  • become a six figure blogger!


    Learn what it takes to become a successful entrepreneur and build a living online!

About Author

Find Your Topic

The Rose 91481 Magazine Template | Codes Copy Paste © 2012. All Rights Reserved by Rose | About Author | Back To Top |