As you know a number is divisible by 3 if sum of its digits are divisible by 3. So write a program that calculates sum of all digits of a number and defines if it is divisible by 3 or not. Input: three-digits number Output: first line is sum of digits second line is ‘YES’ if it is divisible and ‘NO’ if not

в Python please

ivan58888siko ivan58888siko    2   01.05.2020 08:33    1

Другие вопросы по теме Информатика