fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. long long a , b ,c ,d;
  7. cin >> a >> b >> c >> d;
  8.  
  9. //calc product
  10. long long product = a * b * c * d;
  11.  
  12. //get the last two digits
  13. int lastTwoDigits = product % 100;
  14.  
  15. //print result
  16. cout << lastTwoDigits << endl;
  17.  
  18. return 0;
  19.  
  20. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
0