Computer Science, asked by icruztapia7605, 11 months ago

Edhesive 3.7 Code Practice chatbox answer
instruction: When we read code and predict its output, it is called tracing code.

For this lesson, you will come up with your own challenging algorithm for other students to trace. It must contain at least 5 if statements and use at least one AND or OR boolean condition.

Answers

Answered by Iraus
3

Explanation:

largest = None

for i in range(0,6):

d = int(input("Enter a number: "))

if not largest or d > largest:

largest = d

print("Largest: " + str(largest)

Answered by jstroud
5

Answer:

largest = None

for i in range(0,6):

   d = int(input("Enter a number: "))

if not largest or d > largest:

   largest = d

print("Largest: " + str(largest))

if largest < d:

   print ("largest: " + str(d))

if largest > d:

   print ("largest: " + str(largest))

if largest <= d:

   print ("largest: " + str(largest))

if largest >= d:

   print ("largest: " + str(largest))

Explanation:

it should get you a 100

Similar questions