Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that reads in two int (integer) values using cin, call them x and y. Print out the quotient of x and y
Write a program that reads in two int (integer) values using cin, call them x and y. Print out the quotient of x and y W) using integer division. Then print out the quotient using floating point division. To do that, you can cast either x or y to a float, then perform the division. See the sample runs: Sample run 1: Enter two values: 3 4 8.75 Sample run 2 Enter two values: 1 8 1.25 YOUR ANSWER We recommend you take a quick tour of our editor before you proceed. The timer will pause up to 90 seconds for the tour. Start tour For help on how to read input and write output in C++, click here Original CodeC 1 +#include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started