分割一个五位数整数的的各个数字
作者:互联网
//分割一个五位数整数的的各个数字
#include <stdio.h>
int main(void)
{
int n;
printf("请输入一个五位整数:");
scanf("%d",&n);
int a = n/10000;
int b = n%10000/1000;
int c = n%1000/100;
int d = n%100/10;
int e = n%10;
printf("%d %d %d %d %d\n",a,b,c,d,e);
标签:五位数,10,分割,10000,int,n%,整数,printf 来源: https://blog.csdn.net/s13253318528/article/details/100937491