Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  conver.c
Language: C/C++
Code:
#include <stdio.h>
#include<conio.h>
int main(int argc,char*argv[])
{
int s=0,n,i,k[10],count=0,rem;
n=atoi(argv[1]);
while(n>0)
{
rem=n%2;
k[s]=rem;
s++;
count++;
n=n/2;
}
for(i=count;i>=0;i--)
{
printf("%d",k[i]);
}
return 0;
}
          
          
Comments: