fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. double d;
  7. d = 3 / 2.0;
  8. std::cout << d << std::endl;
  9. d = 3.14;
  10. std::cout << d << std::endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
1.5
3.14