#include<stdio.h>
main()
{
      int x;
      printf("Enter either 1 or 2 \t");
      scanf("%d", &x);
      if (x == 1)
         printf(" you entered 1 \n");
      else
      {
         if(x == 2)
              printf("you entered 2 \n");
         else
              printf("you enter other than 1 or 2 \n");          
      }
      system("pause");      
}

