fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int min = 1;
  6. int max = 5;
  7. double ch = (double)min / max;
  8. std::cout << ch;
  9. }
Success #stdin #stdout 0s 4404KB
stdin
Standard input is empty
stdout
0.2