fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double v1 = 365 / 1000;
  6. double v2 = 365 / 1000.0L;
  7. cout << v1 << endl;
  8. cout << v2 << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
0
0.365