Question: If you want to write a code to determine if an inputted integer is positive, negative, large positi (greater than 100), or large negative (less

If you want to write a code to determine if an

If you want to write a code to determine if an inputted integer is positive, negative, large positi (greater than 100), or large negative (less than -100), which of the following codes is the best? 6 1 #A 2 x = int(input("Please input an integer:")) 3 if x > O: 4 print("positive") 5 elif x > 100: print("large positive") 7 elif x 0: 17 print("positive") 18 if x 100: 21 print("large positive") 22 23 #C 24 x = int(input("Please input an integer:")) 25 if x > 100: 26 print("large positive") 27 elif x > 0: 28 print("positive") 29 elif x 100: 41 print("large positive") 42 elif x > 0: 43 print("positive") 44 OB OA OD

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 General Management Questions!