发布网友 发布时间:2024-12-11 20:49
共1个回答
热心网友 时间:2024-12-11 20:47
# include <stdio.h>
void main()
{
int count=0;
int a[10];
int n;
int temp;
printf("input n:\n");
scanf("%d",&n);
temp=n;
do{
a[count++]=temp%10;
printf("%d ",a[count-1]);
temp/=10;
}while(temp!=0);
printf("\n");
}