#include <stdio.h>
#include <Stdlib.h>
int main(void){
int x,y;
printf("enter 2 numbers:\n");
scanf("%d %d",&x,&y);
printf("%6d\n",x);
printf("X%5d\n",y);
printf("----------\n");
printf("%6d\n",x*(y%10));
printf("%5d\n",x*((y/10)%10));
printf("%4d\n",x*(y/100));
printf("----------\n");
printf("%6d\n",x*(y%10)+x*((y/10)%10)*10+x*(y/100)*100);
return 0;
} |