fork download
  1. // Example program
  2. #include <iostream>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. long double x,y;
  9. cout << "Read x and y:" <<"\n";
  10. cin >> x >> y;
  11. cout << "Result x*y:" << x*y << "\n" << "Result x/y:" << x/y << "\n";
  12. }
Success #stdin #stdout 0.01s 5272KB
stdin
9
3
stdout
Read x and y:
Result x*y:27
Result x/y:3