Auto commit
This commit is contained in:
parent
d7b3392f59
commit
9110054b2c
@ -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;
|
||||
}
|
BIN
2207/C语言同步练习/选择结构/2.exe
Normal file
BIN
2207/C语言同步练习/选择结构/2.exe
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user