Question: Andi Allepi wanted a condition that only printed the square of number if number was between two values ( in this case 6 4 and
Andi Allepi wanted a condition that only printed the square of number if number was between two values in this case and However in Andi's code, when number is outside of those bounds in this case number gets squared and prints, which is not what Andi wanted. Please explain to Andi using words not code what is wrong with the code they wrote. Explain why the code does not work, and what should change. Do not tell Andi to change the input number!
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
