Quellcode durchsuchen

Добавить 'practical-2/4.3.py'

u25-29kolmykov vor 1 Woche
Ursprung
Commit
d3a34ef7b8
1 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  1. 10 0
      practical-2/4.3.py

+ 10 - 0
practical-2/4.3.py

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