1. Дано три будь-яких цілих числа. Знайти добуток непарних, що менш за 100.
Python
лекция:
переведите вопрос, решу на питоне)
Ответы
Ответ дал:
0
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)
Ответ дал:
0
Объяснение:
Числа вводить в строчку.
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)
Вас заинтересует
2 года назад
2 года назад
2 года назад
8 лет назад
9 лет назад
9 лет назад