int ten=0 ,mi=1;while(I){ ten += (i%10) *mi;i /= 10;mi*=2;} print("%d", ten)...
如图
int a,u;printf("十进制为:");scanf("%d",&a);if(a>=0) u=1;else u=-1;printf("二进制为:%d",lr(a)*u);printf("\n");} __冰仔__ 团子家族 10 用位运算 认不倒你 麻婆豆腐 11 循环代码;#include <stdio.h>int main(){int a[16],b,c=0;scanf("%d",&b);while(b){a...
int i = a;int ten=0 ,mi=1;while(I){ ten += (i%10) *mi;i /= 10;mi*=2;} print...