fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. double function()
  5. {
  6. double x;
  7. x = 5.5 + 10;
  8. return x;
  9. }
  10.  
  11. int main()
  12. {
  13. double z = function();
  14. cout << "Summ = " << z;
  15. return 0;
  16. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
Summ = 15.5