Предмет: Информатика, автор: dmasakov

Дано два числа х и у. Определите при делении х на у если ли остаток. Если есть, то выведите "YES", а иначе выведите "NO". Придумайте 3 теста для данной задачи, один из которых будет исключением​

Ответы

Автор ответа: shakhmardanturlan8
0

Ответ:

x = int(input())

y = int(input())

if x%y == 0:

print("YES")

else:

print("NO")

Автор ответа: isnik1983
0

Ответ:

Вот еще вариант такой состряпал интересный, не банальный. Знатоки оценят думаю ))))

Объяснение:

x, y =map(int, input().split())

print("YES" if x%y == 0 else "NO")

Похожие вопросы
Предмет: Математика, автор: v4823119
Предмет: Алгебра, автор: cevinmanager
Предмет: Английский язык, автор: Софья1996
а) раскройте скобки и употребите глаголы в соответствующей форме, обращая внимание на тип условного предложения (0, 5 балла);
б) переведите предложения на русский язык (0, 5 балла).
1. Provided a country (to run) a trade deficit with the rest of the world, the country as a whole would have had to sell off some assets to foreigners to pay for this deficit.
2. Unless current assets exceed liabilities, the company probably (to dissolve) due to its debts.
3. If a worker were fired (увольнять) for poor work effort, he (cannot) (to obtain) a good wage else- where.
4. Computer networks would have been used more widely if they (not to be) a secret technology for a long time.
5. If the owner's equity had increased, the net assets (to increase) to the same extent.
6. The bookkeeper wouldn't use separate overhead rates (ставка накладных расходов) for these ma- chines, unless machines (to differ) in power consumption, maintenance costs (эксплуатационные расхо- ды), depreciation.
7. If anything owned by a company, for example copyright, (not to have) a physical form, it will be re- ferred to intangible assets.
8. Provided the company didn't have enough money to begin the reconstruction, it (to be able) (to borrow) it from a bank.
9. More young people would be able to use the Internet for educational purposes if the price for the Inter- net access (to be) not so high.
10. Consumers will use the new software unless it (to be) too expensive.