#include<stdio.h>
#include<conio.h>
void main()
{
int i,n;
clrscr();
printf("Enter any decimal number = ");
scanf("%d",&n);
printf("Equivalent binary number is : ");
for(i=15;i>=0;i--)
printf("%d",(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.........