generated from justuser-31/code_projects_template
Решения на первый блок
This commit is contained in:
@@ -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}
|
||||
-----------------------
|
||||
''')
|
||||
Reference in New Issue
Block a user