You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Пользователь вводит 5-ти значное целое, положительное число и Вам необходимо "перевернуть" его задом наперёд, т.е. чтобы в результате получилось тоже 5-ти значное число, но с обратной последовательностью цифр.
Число ВСЕГДА 5-ти значное и оно не содержит нулей!
Используются только целые числа.
Для решения задачи нужно использовать только тот срез данных, который был пройден. Т.е. использовать строки нельзя.
Примеры:
Пользователь ввёл: 12345 - выводится на экран: 54321
Пользователь ввёл: 37568 - выводится на экран: 86573