int main(int argc, char* argv[]){ int a,b,i,c;b=atoi(argv[1]);while(b!=0){ c=(b%16)*pow(10,i);printf("c=%d\n",b%16);if( (b%16) > 9 ){ switch(b%16){ case 10: printf("a\n"); break;case 11: printf("b\n"); break;case 12: printf("c\n");...
void main(){ int n,right_digit,sum=0,count=0;scanf("%d",&n);do { right_digit=n%2;sum=sum*2+right_digit;n=n/2;count++;} while(n!=0);printf("%d",sum);printf("\n");do { right_digit=sum%2;printf("%d",right_digit);sum=sum/2;count--;} while(sum!=0||cou...