fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. float mul ()
  5. {
  6. float x , y;
  7. cout << "Please enter the first number" << endl;
  8. cin>>x;
  9. cout << "Please enter the second number" << endl;
  10. cin>>y;
  11.  
  12. return x*y;
  13. }
  14. int main() {
  15. cout << mul;
  16. }
Success #stdin #stdout 0.01s 5308KB
stdin
5
10
stdout
1