Auto commit

This commit is contained in:
smallkun 2025-02-20 19:29:03 +08:00
parent d7b3392f59
commit 9110054b2c
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
#include <stdio.h>
int main(void){
int a;
scanf("%d", &a);
printf("该数的位数为%d\n",
(a/10==0?1:(a/100==0?2:(a/1000==0?3:(a/10000==0?4:5)))));
printf("%d", a%10);
if(a%100/10 != 0){
printf("%d", a%100/10);
}
if(a%1000/100 != 0){
printf("%d", a%1000/100);
}
if(a%10000/1000 != 0){
printf("%d", a%10000/1000);
}
if(a/10000 != 0){
printf("%d", a/10000);
}
printf("\n");
return 0;
}

Binary file not shown.