A program that read a number & divide by two using shift operator in Cpp.

#include<stdio.h>
#include<conio.h>
#include<iostream.h>

void main()
{
    int n;
    clrscr();
    cout<<"Enter number = ";
    cin>>n;

    n=(n>>1);
  
    cout<<n;
    getch();

}



////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........