2
well, I'm newly introduced to befunge. it seems to be an amazing language but a bit hard to start with! anyway after about 2 hours of hard work I've created a code which could read a line from stdin and write same line into stdout(I'm using line -1 as buffer in this code):
0> :~:a-#v_$$v vg-10:-1< >$>:#,_@
^+1p-10\< >0>\: #^_^
since I'm new to this language I wanted to know if there is a shorter code to do such a thing. I'm currently using Rc/funge-98 v2 interpreter. note that none-trailing whitespaces are counted in your code.
@ajax333221 here is my code. – Ali1S232 – 2012-03-21T14:13:49.527
but this does not output the newline. – marinus – 2012-03-24T21:40:08.693
@marinus that's no big deal, just putting "," at the third character will solve that! the whole idea is to use "j" instead of "!#@_" – Ali1S232 – 2012-03-24T23:20:41.517