#include "stdio.h"int main(){ int num; int temp; //输入一个整数 scanf("%d",&num); //分离各个位并输出 while(num != 0) { temp = num % 10; num /= 10; printf("%d ",temp); } return 0;}