I have a any challenge. I must write brainfuck-code.
For a given number n appoint its last digit .
entrance
Input will consist of only one line in which there is only one integer n ( 1 < = n < = 2,000,000,000 ) , followed by a newline ' \ n' (ASCII 10).
exit
On the output has to find exactly one integer denoting the last digit of n .
example I entrance: 32 exit: 2
example II: entrance: 231231132 exit: 2
This is what I tried, but it didn't work:
+[>,]<.>++++++++++.
Nope sorry, real answer is
because your answer was getting one too far ;)