- Learn With Coding Examples

Learn programming with the examples of programs. Techyquest provides lot of programming examples to learn programming and logic.

Recents in Beach

Responsive Ads Here

Popular Posts

Saturday, 15 February 2020

C Program to Check Whether a Number Is Even or Odd

C program to check whether a number is even or odd using if..else statement

#include <stdio.h>

int main()
    int num;
    printf("Enter the number:\t");
    if(num%2 == 0){
        printf("%d is even number",num);
        printf("%d is odd number",num);
    return 0;
Above program shows how to check whether a number is even or odd.

No comments:

Post a comment