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.

#include using 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!