Computer Science, asked by srivastavaharsh4276, 1 year ago

Edhesive 3.6 code practice answers

Answers

Answered by fhalilov
6

Answer:

largest = 0

for i in range(0,6):

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

 if b > largest:

   largest = b

 print("Largest: ",largest)

Explanation:

It works but not in Edhesive.

Any suggestions?

Answered by caldziakk
0

Answer:

num1 = int(input("Enter a Number: "))

smallest = num1

print("Smallest: " + str(smallest))

num2 = int(input("Enter a Number: "))

if(num2 < smallest): smallest = num2

print("Smallest: " + str(smallest))

num3 = int(input("Enter a Number: "))

if(num3 < smallest): smallest = num3

print("Smallest: " + str(smallest))

num4 = int(input("Enter a Number: "))

if(num4 < smallest): smallest = num4

print("Smallest: " + str(smallest))

num5 = int(input("Enter a Number: "))

if(num5 < smallest): smallest = num5

print("Smallest: " + str(smallest))

num6 = int(input("Enter a Number: "))

if(num6 < smallest): smallest = num6

print("Smallest: " + str(smallest))

Explanation:

trust me bro

Similar questions