http://oj.tsinsen.com/A1100
#include "cstdio"
int main() {
int a, b, c, d, e;
scanf("%d%d", &a, &b);
c = a * (b % 10);
d = a * (b / 10);
e = a * b;
printf("%4d\n*", a);
printf("%3d\n----\n", b);
printf("%4d\n", c);
if (d != 0)
printf("%3d \n----\n%4d", d, e);
return 0;
}