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 64 and 128). However in Andi's code, when number is outside of those bounds (in this case 42), 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!)
Andi Allepi wanted a condition that only printed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!