A number is taken from user and determined weather even or odd.
Select To use this code as it is.. select and copy paste this code into code.cpp file :)
- #include<iostream.h>
- #include<conio.h>
- void main()
- {
- clrscr();
- int n;
- cout<<"Enter no.: ";
- cin>>n;
- //Coding by: Snehil Khanor
- //http://WapCPP.blogspot.com
- if(n%2==0)
- cout<<"EVEN";
- else
- cout<<"ODD";
- getch();
- }
0 comments:
Post a Comment