Question
# Complete the following program num_in_tens = int(input('Enter the tens digit: ')) num_in_ones = int(input('Enter the ones digit: ')) num_in = num_in_tens*10 + num_in_ones print('You
# Complete the following program
num_in_tens = int(input('Enter the tens digit: ')) num_in_ones = int(input('Enter the ones digit: '))
num_in = num_in_tens*10 + num_in_ones
print('You entered', num_in) print(num_in, '* 11 is', num_in*11)
num_out_hundreds = num_in_tens + ((num_in_tens + num_in_ones) // 10) #num_out_tens = ? FINISH #num_out_ones = ? FINISH
print('An easy mental way to find the answer is:') print(num_in_tens, ',', num_in_tens, '+', num_in_ones, ',', num_in_ones)
#Build num_out from its digits: #num_out = ? + ? + ? FINISH
# Note this line will generate an error until the above program is complete. print(num_out)
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