- Home
- Course Category
- Course Result
- Course Detail
Hot Line: 0124-2383121
Course Introduction

Programs for practice
In the program below, we've introduced beginers to programming in C++
Source Code: Check Even or Odd
/* C++ Program - Check Even or Odd */ #include<iostream.h> #include<conio.h> void main() { clrscr(); int num; cout<<"Enter a number :"; cin>>num; if(num%2==0) // use of remainder operator % { cout<<"This is an even number"; } else { cout<<"This is an odd number"; } getch(); }Output
Enter a number : 5 This is an odd number