SHARE
TWEET

Untitled

a guest Nov 13th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. string = int(input("Введите число: "))
  2. success = 0
  3. mas = []
  4. while string:
  5.     if string < 0:
  6.         print("Не допустимое значение")
  7.     elif string > 0:
  8.         success += 1
  9.         mas.append(string)
  10.     string = int(input("Введите число: "))
  11. print(f"Количество верно введенных: {success} \nМинимальное значение: {min(mas)} \nМаксимальное значение: {max(mas)} \nCумма: {sum(mas)} \nСреднее арифметическое: {sum(mas) / len(mas)}")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top