Explorar o código

Добавить 'Практическая 2/4.6.py'

u25-29ibragimov hai 1 semana
pai
achega
ae13853ff3
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      Практическая 2/4.6.py

+ 8 - 0
Практическая 2/4.6.py

@@ -0,0 +1,8 @@
+x = float(input("Введите x: "))
+
+if x <= 2:
+    y = x
+else:
+    y = 2
+
+print("y =", y)