Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Here is one of the problems for my C++ homework. i am supposed to write the code to complete this progrom. I also included an
Here is one of the problems for my C++ homework. i am supposed to write the code to complete this progrom. I also included an example of how the code should like once its finished. For this problem i cannot use strings or if statements. I am stuck and would love help
Problem 1: Write a program that 1. Asks the user for a two digit number. (The smallest mumber allowed is 10 and the largest allowed is 99.) 2. Tells the user the number 3. Tells the user the tens digit and the ones digit. 4. Tells the user which of these numbers is larger. 5. Computes the sum. product, and absolute difference of two digits. (The absolute difference of two numbers r and y is given by 1 - yl.) 6. Tells the user what you get when you divide the larger digit by the smaller digit. Please enter a two digit number. (The smallest number allowed is 10 and the largest allowed is 99.) 37 Your number is: 37 The tens digit is: 3 The ones digit is: 7 The larger digit is: 7 In order to do the calculation on the line above, I wrote #includeStep 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