a, b, c = map(int, input().split())
ans = 1
if a % 2 == 1 and a < 100:
ans *= a
if b % 2 == 1 and b < 100:
ans *= b
if c % 2 == 1 and c < 100:
ans *= c
print(ans)
Объяснение:
Числа вводить в строчку.
a,b,c=map(int,input('Введите числа:').split())
if a<100 and b<100 and c<100:
if a%2==1 and b%2==1 and c%2==0:
pr=a*b
print(pr)
if b%2==1 and c%2==1 and a%2==0:
pr1=b*c
print(pr1)
if a%2==1 and c%2==1 and b%2==0:
pr2=a*c
print(pr2)
if a%2==1 and b%2==1 and c%2==1:
pr3=a*b*c
print(pr3)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
a, b, c = map(int, input().split())
ans = 1
if a % 2 == 1 and a < 100:
ans *= a
if b % 2 == 1 and b < 100:
ans *= b
if c % 2 == 1 and c < 100:
ans *= c
print(ans)
Объяснение:
Числа вводить в строчку.
a,b,c=map(int,input('Введите числа:').split())
if a<100 and b<100 and c<100:
if a%2==1 and b%2==1 and c%2==0:
pr=a*b
print(pr)
if b%2==1 and c%2==1 and a%2==0:
pr1=b*c
print(pr1)
if a%2==1 and c%2==1 and b%2==0:
pr2=a*c
print(pr2)
if a%2==1 and b%2==1 and c%2==1:
pr3=a*b*c
print(pr3)