int main() { int n; int nConut = 0; scanf("%d", &n); do { nConut ++; printf("%d ", n % 10); n = n / 10; }while(n != 0); printf("\n共有%d位\n", nConut); return 0; }
︷゛噓低調
2024-05-30 04:16:34
int a, digit = 0; scanf("%d", &a);
do { printf("%d\t", a%10); a = a/10; digit ++; }while(a);
printf("\nThe number contains %d digits\n", digit );