На Python:
3.
a = int(input( ))
b = int(input( ))
c = int(input( ))
if a > 0:
a *= 3
b *= 3
c *= 3
else:
a += 7
b += 7
c += 7
print(a, b, c)
4.
if b > 0:
a, b = 2*a, 2*b
a, b = a + 2, b + 2
print(a, b)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
На Python:
3.
a = int(input( ))
b = int(input( ))
c = int(input( ))
if a > 0:
a *= 3
b *= 3
c *= 3
else:
a += 7
b += 7
c += 7
print(a, b, c)
4.
a = int(input( ))
b = int(input( ))
if a > 0:
if b > 0:
a, b = 2*a, 2*b
else:
a, b = a + 2, b + 2
print(a, b)