import math
def calc_c(a, b):
c = 0
for i in range(2, 18, 2):
c += a * i
for i in range(3, 19, 2):
c += b * i
return math.sqrt(c)
a = int(input("Введите А: "))
b = int(input("Введите B: "))
c = calc_c(a, b)
print(f"Значение C: {c}")
import math
def calc_c(a, b):
c = 0
for i in range(2, 18, 2):
c += a * i
for i in range(3, 19, 2):
c += b * i
return math.sqrt(c)
a = int(input("Введите А: "))
b = int(input("Введите B: "))
c = calc_c(a, b)
print(f"Значение C: {c}")