Write a Turing Program

来源:百度知道 编辑:UC知道 时间:2024/06/26 04:00:47
write a program which will print the cubes of numbers from 1 to 12.
OUTPUT SHOULD BE LIKE THIS
The cube of 1 is 1.
The cube of 2 is 8.
.
.
The cube of 12 is 1728.

var x:int:=1
var z:int:=3
loop

put "The cube of " , x," is " , x**z

x:=x+1
exit when x=13
end loop

好歹是个4级经理 多给点分 可怜可怜 我这个 三级的新人吧 要么 你把所有 问题都列多出 如果要答案 发个消息给我 我每天都能帮你回答