Stop Microsoft
Miscellaneous => Programming & Networking => Topic started by: TheQuirk on 1 November 2005, 23:55
-
This one can be solved using a computer or a pen and paper.
n is a six-digit natural number. n's first digit is 2. If n's first digit is removed and placed at the front of the number, then the new number is three times larger than n.
What's n?
-
.
-
w00t!, made a program to do this, here's the C source code:
http://illhostit.com/files/4811330734929765/n.c (http://illhostit.com/files/4811330734929765/n.c)
piratepenguin@pcdeclan:~/stuff/programming/c/n$ ./n | grep yes
Checking: 285714... yes!
The answer is 285714 :)