Question: 8 . Loop and Input a ) Request two numbers, n 1 and n 2 from the console. b ) n 1 and n 2
Loop and Input a Request two numbers, n and n from the console. b n and n can be any integer value. c Use a while loop to horizontally print n to n with increment by if n is smaller than n d Use a for loop to horizontally print n to n with decrement by if n is greater than n e Print a message, n n if n is equal to n Input text can be any content. Just make sure to precisely match the output format below.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
