Задача 1
num_1, num_2 = int(input()), int(input())
arr = [num_1 + num_2, num_1 - num_2, num_1 * num_2, num_1 / num_2,
num_1 // num_2, num_1 % num_2, num_2 ** num_1]
print(' | '.join([str(i) for i in arr]))
Задача 2
a, b, c = [int(input()) for i in range(3)]
a, b, c = a + b, c - a, a + b + c
print(a, b, c)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Задача 1
num_1, num_2 = int(input()), int(input())
arr = [num_1 + num_2, num_1 - num_2, num_1 * num_2, num_1 / num_2,
num_1 // num_2, num_1 % num_2, num_2 ** num_1]
print(' | '.join([str(i) for i in arr]))
Задача 2
a, b, c = [int(input()) for i in range(3)]
a, b, c = a + b, c - a, a + b + c
print(a, b, c)