0

Such number whose last digit when moved to the fore position becomes half of the new number

Write a code to deduce the smallest number x, such that when the last digit is moved to it fore position the resulting number is twice the original number x Example x=25 Switch last digit y=52 52/25=2r2 very close but it doesn't meet the above criteria.

31st Oct 2019, 1:21 PM
Fabian Nwobi
Fabian Nwobi - avatar
4 ответов
+ 4
Your attempt ?
31st Oct 2019, 1:29 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
2nd Nov 2019, 6:37 AM
Ipang
31st Oct 2019, 2:45 PM
Asman-H
Asman-H - avatar
+ 1
The answer is ' x=105263157894736842' Switch(x)= Y=210526315789473684 I've not been able to write a code for it
31st Oct 2019, 5:08 PM
Fabian Nwobi
Fabian Nwobi - avatar