for(int j=i;j>0;j = j/10){
if(j%10==2){
count++;
}
}
}
printf("%d",count);
return 0;...小蓝要选择一部分二极管(至少有一个)发光来表达字符,在设计字符的表达时,要求所有发光的二极管是连成一片的。
例如:b发光,其他二极管不发光可以用来表达一种字符。...例如:b,f 发光,其他二极管不发光则不能用来表达一种字符,因为发光 的二极管没有连成一片。
请问,小蓝可以用七段码数码管表达多少种不同的字符?...#include
#include
int main(){
int count = 0;
int l1,l2,l3,l4,l5,l6,l7;
// 一个二极管发光...=pow(2,20)-1;
int fenmu=pow(2,19);
printf("%d/%d",fenzi,fenmu);
return 0;
}
----
总结
以上就是今天的学习内容啦