Explorar el Código

Загрузить файлы 'Практическая2'

u25-29gusakov hace 16 horas
padre
commit
f9179c9bdc
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      Практическая2/4.2.ру

+ 10 - 0
Практическая2/4.2.ру

@@ -0,0 +1,10 @@
+import math
+
+x = float(input("Введите x: "))
+
+if x > 0:
+    y = math.sin(x ** 2)
+else:
+    y = 1 + 2 * math.sin(x) ** 2
+
+print("y =", y)