其他分享
首页 > 其他分享> > pep/9伪代码

pep/9伪代码

作者:互联网

编写一个伪代码算法,读入三个值,输出它们的和

根据课本《计算机科学概论》
输入一定数量的数,读取每个数的值,并输出它们的值。
Set counter to 0
Set sum to 0
Read limit
While(counter<limit)
Read num
Set sum to sum + num
Set counter to counter + 1
Print sum

用PEP/9 机器指令实现(1)中的算法,提交测试结果截图。

用PEP/9 汇编语言实现(1)中的算法,提交测试结果截图。

标签:Set,PEP,代码,counter,pep,算法,num,sum
来源: https://www.cnblogs.com/shengcongnianle/p/15484790.html