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