factor1.tpl

来自「a Java program that reads a file contain」· TPL 代码 · 共 16 行

TPL
16
字号
# A TPL program to calculate the factorial of 5
INTEGER myInt
INTEGER factorial
STRING myString
LET myString="Factorial Program"
LET myInt=5
CALCULATE factorial=myInt*4
CALCULATE factorial=factorial+3
CALCULATE factorial=factorial*2
PRINTLN myString
PRINTLN
PRINT "The factorial of "
PRINT myInt
PRINT " is "
PRINTLN factorial
END

⌨️ 快捷键说明

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