7-4 古风A+B (15分)
#include<stdio.h>
int main()
{
int A,B;
scanf("%d %d",&A,&B);
int c;
c=A+B;
if(c<0){
printf("-\n");
c=-c;
}
int num=c;
int temp=1;
while(c>9){
c=c/10;
temp*=10;
}
//printf("%d %d\n",num,temp);
int n;
while(temp>0){
printf("%d\n",num/temp);
num=num%temp;
temp=temp/10;
}
return 0;
}