1
1
Fork 0
AtomicKotlinCourse/Programming Basics/Summary 1/Exercise 8/task.md

12 lines
322 B
Markdown
Raw Normal View History

2019-10-11 14:44:13 +03:00
## Summary 1 (#8)
Reverse the digits in a decimal number using a `while` loop. An auxiliary
`var worker` will help you iteratively produce the `result`:
| Worker | Result |
|------------|--------|
| 1234 | 0 |
| 123 | 4 |
| 12 | 43 |
| 1 | 432 |
| 0 | 4321 |