fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int A, B;
  6. scanf("%d %d", &A, &B);
  7. printf("%d\n", A * ((B % 100) % 10));
  8. printf("%d\n", A * ((B % 100) / 10));
  9. printf("%d\n", A * (B / 100));
  10. printf("%d", A * B);
  11. return 0;
  12. }
Success #stdin #stdout 0s 4372KB
stdin
472
385
stdout
2360
3776
1416
181720