Программирование алгоритмов ветвления
Соотнеси код с его результатом.
Количество соединений: 4
price = 50
if price < 100:
print("price is less than 100")
price = 50
quantity = 5
if price*quantity < 500:
print("price*quantity is less than 500")
print("price = ", price)
print("quantity = ", quantity)
price = 50
quantity = 5
if price*quantity < 500:
print("price is less than 500")
print("price = ", price)
print("quantity = ", quantity)
price = 50
quantity = 5
if price*quantity < 100:
print("price is less than 500")
print("price = ", price)
print("quantity = ", quantity)
print("No if block executed.")
print("quantity = ", quantity)
^
IdentationError: unexpected indent
No if block executed.
price is less than 100
price*quantity is less
than 500
price = 50
quantity = 5
Назад
Проверить
Приложения:
Ответы
Ответ дал:
30
Ответ:
1.3
2.4
3.1
4.2
Объяснение: проверено
nadacalandarova996:
СПАСИБО
Спасибо
не правильно(
правильно?
ДАА
НУЖНО КАЖДУЮ БУКВУ КАЖДОЙ ЦИФРЫ СМОТРЕТЬ ВНИМАТЕЛЬНО
потому что они очень похожи
хорошо,спасибо за ответ!
а это какое задание не помню?
Не правильно(
Вас заинтересует
2 года назад
2 года назад
3 года назад
3 года назад
8 лет назад
8 лет назад
10 лет назад