- 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



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;

No comments:

Post a Comment