摘要:
习题2-1 位数(digit) 1 #include <stdio.h> 2 void main() 3 { 4 int n,number=0; 5 scanf("%d", &n); 6 while(n!=0) 7 { 8 n /= 10; 9 number++;10 }11 printf("%d\n",number);12 }习题2-2 水仙花数(daffodil)#include <stdio.h>void main(){ int i; int a,b,c; for (i=100;i<1000... 阅读全文