Question: For Python Write code that gets two integer numbers from the user: x and y. The program should print all pairs (i,j) where i and
For Python Write code that gets two integer numbers from the user: x and y. The program should print all pairs (i,j) where i and j can take on the values x to y (inclusive), but they cannot be equal. If x is greater than y print nothing.
examples
% python3 ch07_06.py enter lower bound: 0 enter upper bound: 4 0 1 0 2 0 3 0 4 1 0 1 2 1 3 1 4 2 0 2 1 2 3 2 4 3 0 3 1 3 2 3 4 4 0 4 1 4 2 4 3 % python3 ch07_06.py enter lower bound: 1 enter upper bound: 2 1 2 2 1 % python3 ch07_06.py enter lower bound: 2 enter upper bound: 1 % python3 ch07_06.py enter lower bound: -1 enter upper bound: 2 -1 0 -1 1 -1 2 0 -1 0 1 0 2 1 -1 1 0 1 2 2 -1 2 0 2 1 %
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
