fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. int n = 5;
  8. double b = n;
  9.  
  10. b /= n+1;
  11.  
  12. cout << b << endl;
  13. return 0;
  14. }
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
0.833333