Basic Programs
If Else based Programs
Loop Based Programs
Array Based Programs
String Programs
Function Programs
Pointers Programs
Structure & File Handling Programs
Data Structure Programs
If Else based Programs
Program to check if given no. is Even or Odd?
#include<stdio.h>
#include<conio.h> int main() { int n=0; printf("enter the number to check\n"); scanf("%d",&n); if(n%2==0) printf("no is even"); else printf("no is odd"); }
Output of the above program is as following.

Video/ C Introduction
Watch video in full size