// Author: Dick Botting // File: div.cpp // April 5th 2005 /* Use Case The user inputs two numbers and the computer outputs their ratio */ #include using namespace std; main( ) { // Local Variables int first, second, result; // 1. Output a prompt cout << "Enter two numbers separated by white spaces: "; // 2. user inputs 2 numbers cin >> first >> second; // 3. Calculate the result of dividing them result = first / second; // 4. echo the user's request and supply the answer cout << first << '/' << second << '=' << result << endl; return 0; }