
/*----------------------------------------------------------------------*/
/*                           OddEven.cpp                                */
/* Authored By : H.P.Kasmaei                                            */
/* Last Update : December 21, 2007                                      */
/* http://www.hpkclasses.ir/                                            */
/*----------------------------------------------------------------------*/
#include <iostream.h>
#include <stdlib.h>


/*----------------------------------------------------------------------*/
/*                              M A I N                                 */
/*----------------------------------------------------------------------*/

void main ()
{

   short int a;
   char  c;

   cout<<"Input a Number:";
   cin>>a;

   asm {
      shr a,1
      jc  Odd
      jmp Even
      }
Odd:
   asm {
      mov c,'O'
      jmp EndIf
      }
Even:
   asm mov c,'E'

EndIf:

   cout<<c<<endl;
}



