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.
4 ответов
+ 4
Your attempt ?
+ 3
This one in C++
https://code.sololearn.com/cFuXl2k6GmZF/?ref=app
+ 1
My attempt:
https://code.sololearn.com/cvRMolXV0INE/?ref=app
+ 1
The answer is ' x=105263157894736842'
Switch(x)=
Y=210526315789473684
I've not been able to write a code for it