fork download
  1. #include<stdio.h>
  2. #include<math.h>
  3.  
  4. int main() {
  5.  
  6. int num1, num2, num3 = 0,
  7. array[9];
  8. scanf("%d %d %d", &num1, &num2, &num3);
  9. int resultNum = num1 * num2 * num3;
  10.  
  11. for(int i = 8 ; i >= 0 ; i--) {
  12. int n = pow(10, 1);
  13. array[i] = resultNum / n;
  14. array[i] %= n;
  15. printf("%d\n", array[i]);
  16. }
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 5440KB
stdin
150
266
427
stdout
0
0
0
0
0
0
0
0
0