Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i cannot use strings and i cannot use if statements i have to write the code for this problem without using strings or if statements

image text in transcribed

i cannot use strings and i cannot use if statements

i have to write the code for this problem without using strings or if statements

image text in transcribed

the code should end up looking like this when it is ran

Problem 1: Write a program that 1. Asks the user for a two digit number. (The smallest number allowed is 10 and the largest allowed is 99.) Tells the user the number Tells the user the tens digit and the ones digit. 1. 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 mmbers + and y is given by -- vl.) 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 #include in the top of this file. 1 The sum of the digits is: 10 The product of the digits is: 21 The absolute difference of the digits is: 4 When you divide the larger digit by the smaller digit, you get: 2.33333 For the be ho

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions

Question

8. How would you explain your decisions to the city council?

Answered: 1 week ago