摘要:
1.位数输入一个不超过10^9的正整数,输出它的位数.例如12735的位数是5.请不要使用任何数学函数,只用四则运算和循环语句实现.#includeusing namespace std;int main(){float maxmal= 1000000000;int a=234234,i=0,b=1,t=1;while(b>=1){ b=a/t; t=t*10; if(b>=1){ i++; } }coutusing namespace std;int main(){ int a ,b,c,i;for(i=100;iusing namespace std;in... 阅读全文