Facebook
From Thiwanga Sandaruwan, 4 Months ago, written in C++.
Embed
Download Paste or View Raw
Hits: 30
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main ()
  5. {
  6.     int number,resault;
  7.     cout<<"Enter your number"<<endl;
  8.     cin>>number;
  9.  
  10.     if (number%2==1)
  11.     {
  12.         cout<<"This number is odd"<<endl;
  13.     }
  14.     else
  15.     {
  16.         cout<<"This number is even"<<endl;
  17.     }
  18.     return 0;
  19. }
  20.