Question: Write a program that asks the user for two numbers. The program should divide the first number by the second number and display the result.
Write a program that asks the user for two numbers. The program should divide the first number by the second number and display the result.
#includeusing namespace std; int main() { // create appropriate variables to store the user's input. // select an appropriate data type for the variables. __________ num1, num2, answer; // prompt the user to enter the first number: cout << ______ // read their first response using cin: cin >> ____ // prompt the user to enter the second number: _________ // read their second response using cin: __________ // divide the first number by the second and store the answer: answer = __________ // display the answer to the user cout << "The answer is: " << ________ }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
