// Program to check whether a no. is even or odd.#include <iostream.h>#include <conio.h>void main(){clrscr();int num;cout<...
Upcoming SlideShare
Loading in …5
×

Program to check whether a no. is even or odd.

525 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
525
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Program to check whether a no. is even or odd.

  1. 1. // Program to check whether a no. is even or odd.#include <iostream.h>#include <conio.h>void main(){clrscr();int num;cout<<"n Enter the no. you want to check: ";cin>>num;if ((num%2)==0){cout<<" nThe no. is even";}else{cout<<" nThe no. is odd";}getch();}

×