> <>,19 8字节
32b*!{n;
打印22
在线尝试!
说明:
32b push literals onto the stack: [3,2,11]
* multiply the top two values: [3,22]
! skip the next instruction
{ (skipped)
n pop and print the top value from the stack (22)
; end execution
翻倍:
3322bb**!!{{nn;;
打印33
在线尝试!
说明:
3322bb push literals onto the stack: [3,3,2,2,11,11]
** multiply top values (twice): [3,3,2,242]
! skip next instruction
! (skipped)
{{ rotate the stack to the left (twice): [2,242,3,3]
nn pop and print the top two values from the stack (33)
; end execution
旧版本:
普通:
11+!vn;
n
;
打印2
在线尝试!
说明:
1 push 1 on the stack: [1]
1 push 1 on the stack: [1,1]
+ add top two values of the stack: [2]
! skip the next instruction
v (skipped)
n print the top value of the stack (2)
; end execution
翻倍:
1111++!!vvnn;;
nn
;;
打印3
在线尝试!
说明:
1111 push four 1's on the stack: [1,1,1,1]
+ add top two values of the stack: [1,1,2]
+ add top two values of the stack: [1,3]
! skip the next instruction
! (skipped)
v change direction of execution (down)
n print the top value of the stack (3)
; end execution
write a program that outputs a positive even integer
是的。每个偶数都可以乘以1.5以得到一个整数