说明:统计
stat是一种简单的命令式编程语言。 它仅包含基本功能,例如if语句和while循环,并且仅使用数字。 还有一个print和read语句,以便分别打印和读取数字。
句法
这是一个用stat编写的示例程序:
read a; /* read in the multiplier */
read b; /* read in the multiplicant */
c = 0;
while a != 0 {
if a % 2 == 1 {
c = c + b;
}
a = a
<weixin_42131342> 上传 | 大小:12kb