Решения на первый блок

This commit is contained in:
2025-03-25 12:39:42 +03:00
parent 1e61635a97
commit 7f72988d8b
12 changed files with 280 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
x = int(input('Enter x: '))
y = int(input('Enter y: '))
sum = x + y
sub = x - y
mult = x * y
div = x / y
pow = x**y
sqrt = x ** (1/y)
print(f'''
Results:
-----------------------
sum: \t {sum}
sub: \t {sub}
mult: \t {mult}
div: \t {div}
pow: \t {pow}
sqrt: \t {sqrt}
-----------------------
''')