fork download
  1. #include <iostream>
  2. int main() {
  3.  
  4. float a = 0;
  5. int b = 0;
  6. for (int i = 0; i < 20000; ++i) {
  7. a += 0.1;
  8. b += 10;
  9. }
  10. std::cout << a << std::endl;
  11. std::cout << b/float(100) << std::endl;
  12.  
  13. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
1999.66
2000