English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3 answers

Keep going.

2006-12-06 18:25:22 · answer #1 · answered by liketoaskq 5 · 0 0

Can u specify by an example what is ur input and what is ur output?

2006-12-08 01:56:16 · answer #2 · answered by manoj Ransing 3 · 0 0

#include
/* this program is re-edited on dec-8/2006 */
int main()
{int dec;
scanf("%d",&dec);
int count=0;
short[1000] bin;
int dec1=dec;
while(dec1>0)
{bin[count]=dec1%2;
dec1=dec1/2;
count++;
}
while(count>0)
{printf("%d",bin[--count]);
}
return 0;
}

2006-12-06 23:45:37 · answer #3 · answered by nick_name_less_than32characters 2 · 0 0

fedest.com, questions and answers