fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c, d;
  6. cin >> a;
  7. b= a/100;
  8. c= a%100/10;
  9. d= a%10;
  10. cout << b*c*d << endl;
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5436KB
stdin
335
stdout
45