A Program That Read Any Decimal Number & Display Equivalent Binary number.

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

void main()
{
    int i,n;
    clrscr();
    cout<<"Enter any decimal number = ";
    cin>>n;
   
    cout<<"Equivalent binary number is : ";
    for(i=15;i>=0;i--)
    cout<<((n>>i)&1);

    getch();
}

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