|
|
Lance Birch wrote:
>
> he he he, now can someone show it to me in ADA 95? ;-)
no, but how about befunge98?
just follow the arrows...
<Cool-programming-languages-mode-on>
--- start of first version (harder to read)---
vPOVR
>vRU
5"8AL
5PkYE
*L,!S
4E1!!
*A-!!
5S:>v
*E>|v
8!@@v
*!v<<
5!vRI
*"vGH
>^<T?
--- start of second version (easier to read)---
v
5
>5*4*5*8*5* v
v"PLEASE!!!"<
8 POV RULES
k !!!!!!!!!
, > ^
>1-:|
@
--- End of program ---
<Cool-programming-languages-mode-off>
Of course I could have made this program alot harder to read... here's
a little legend for the symbols used:
<>v^ : go in the arrows direction
k : repeat next command x number of time, x is on the stack.
, : print the character on the stack
: : duplicate first on stack
| : if first on stack is zero go north else south
@ : stop and quit
remember that befunge is stackbased.
/Peter Toneby
Post a reply to this message
|
|