I'm trying to increase the limit up to a billion (or up to a hundred thousand). I don't know how.
main()
{
long int a,b,c,d=0,e=1;
clrscr();
printf(“Enter a Decimal Value: “);
scanf(“%ld”, &a);
while (a!=0)
{
b=a/2; /*Formula for Decimal
c=a%2; to Binary*/
a=b;
d=d+(c*e);
e=e*10;
}
printf(“The Binary Value is: %ld”, d);
getch();
}