I need to write a program where you can only input 10 numbers, and from those 10 numbers it then will print the minimum number out of the 10 inputted numbers and then print average of all the numbers.
Instructions: Write a program that reads 10 integers and displays its minimum and average.
What I have so far:
c=1
min=int(input("a number>1: "))
while c<10:
v=int(input("a number>2: "))
print (min)
print (v)
if min>v:
min=v
c += 1
d = sum(int(min+v)
print (d)
print ("Minimum number: " + str(min))
Or this:
a = 0
b = int(input("a number>1: "))
while a < 10:
c = int(input("a number>1: "))
d = int(input("a number>1: "))
e = int(input("a number>1: "))
f = int(input("a number>1: "))
g = int(input("a number>1: "))
h = int(input("a number>1: "))
i = int(input("a number>1: "))
j = int(input("a number>1: "))
k = int(input("a number>1: "))
a += 1
if (b>c and b<d and b<e and b<f and b<g and b<h and b<i and b<j and b<k):
print ("Minimum is" + str (b))
# c =
# a += 1
#print(min)