fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. const int a = 6160;
  6. const int b = 6160;
  7. int c = a + b;
  8. int d = 0;
  9. const int f = 100;
  10.  
  11. while (c >= f) {
  12. d += 1;
  13. c = c - f;
  14. }
  15. std::cout << d << "-" << c << std::endl;
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
123-20