aa.tny

来自「TINY语言的编译器」· TNY 代码 · 共 13 行

TNY
13
字号
{ Sample program
  int TINY language
  computes factorial
}
read x; { input an integer }
if 0 < x then { don't compute if x <= 0 }
  fact := 1;
  repeat
    fact := fact *  x;
    x := x - 1
  until x =0;
  write fact { output factorial of x }
end 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?