Link to Turbo C: HERE
/* Decimal to binary */
#include<stdio.h>
#include<conio.h>
void main()
{
int x,i,rev=0,num;
clrscr();
printf("Enter number in decimal:\n");
scanf("%d",&num);
for(i=num;i>0;i=i/2)
{
x=i%10;
rev=rev+x;
}
printf("\nBinary is: %d",rev);
getch();...
C programme to convert decimal to binary & vice- versa
