sc.txt
来自「tiny 编译器程序的设计 修改了原作者的程序 现在能生成中间代码」· 文本 代码 · 共 12 行
TXT
12 行
{ Sample program in TINY lanuage---computes facotrial}
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 + -
显示快捷键?