fork download
  1. #include <iostream>
  2.  
  3. void expect(int fulldone, int fulltotal) {
  4. int desired_percent = fulldone*100/fulltotal;
  5. std::cout << desired_percent;
  6. }
  7.  
  8. int main() {
  9. expect(174516356, 174743070);
  10. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
1