Sample design and thinking of Something new Graphical design.... To all member's of this website please Fill up the form of your Personal Information for Special Reference of our Forum thank you!
For non-member just post your comment in the chatbox. Thanks for Visiting our site.
Posts : 52 Join date : 2011-09-01 Age : 33 Location : Cavite City, Philippines
Subject: Even or Odd Thu Sep 15, 2011 6:02 pm
Code:
#include<iostream.h> #include<conio.h>
main() { int x; clrscr(); cout<< “enter an integer: “; cin>>x; if (x%2==0) { cout <<x<<” :is an even number.”; } if (x%2==1) { cout <<x<<” :is an odd number.”; } getch(); return 0; }