fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double num1, num2, product;
  6.  
  7. // Ask the user for input
  8. cout << "Enter the first numberF: ";
  9. cin >> num1;
  10.  
  11. cout << "Enter the second number: ";
  12. cin >> num2;
  13.  
  14. // Calculate the result
  15. cout << "The product of " << num1 << "and" << num2 << "is" << product << endl;
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
Enter the first numberF: Enter the second number: The product of 4.65097e-310and6.9526e-310is0