Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
367 B
2
Indexable
Never
number = int(input('Tal: ')
number_of_numbers = 1
sum = number * number_of_numbers

while number >= 0:
    number = input('Tal: ' )
    number_of_numbers += 1

    if number < 0:
        print('Minsta tal: ' + min(str(number)))
        print('Största tal: ' + max(str(number)))
        print('Summa: ' + sum )
        print('Medelvärde: ' + sum / number_of_numbers)