10. Top Number задача от Methods - Exercise(Java Fundamentals)
Дава ми 30/100 точки и не мога да разбера къде ми е грешката.
Условие:
Read an integer n from the console. Find all top numbers in the range [1 … n] and print them. A top number holds the following properties:
- Its sum of digits is divisible by 8, e.g. 8, 88.
- Holds at least one odd digit, e.g. 232, 707, 87578.
Examples
| Input | Output | 
 | Input | Output | 
| 50 | 17 35 | 
 | 100 | 17 35 53 71 79 97 | 
Благодаря за бързия отговор !
!