Ответ:
На питоне
4.
def F(n):
r = 0
while n != 0:
f = n % 10
r = r * 10 + f
n //= 10
return r
n = int(input())
print(F(n))
5.
a = [int(i) for i in input().split()]
print(sum(a))
6.
t = input()
kg = input()
g = input()
t = int(t[6::])
kg = int(kg[3::])
g = int(g[2::])
print(t * 1000000 + kg * 1000 + g, 'г')
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
На питоне
4.
def F(n):
r = 0
while n != 0:
f = n % 10
r = r * 10 + f
n //= 10
return r
n = int(input())
print(F(n))
5.
a = [int(i) for i in input().split()]
print(sum(a))
6.
t = input()
kg = input()
g = input()
t = int(t[6::])
kg = int(kg[3::])
g = int(g[2::])
print(t * 1000000 + kg * 1000 + g, 'г')