C
Programming and Technical
Programming
Functions
write a program to convert decimal number to binary.
Read Solution (Total 1)
-
- #include
main()
{
int num,pos;
printf("enter the decimal numbern");
scanf("%d",&num);
for(pos=31;pos>=0;pos--)
printf("%d",num>>pos&1);
} - 6 years agoHelpfull: Yes(1) No(1)
C Other Question