Assignment3(1)(8)

2021-01-20 18:34

11. What sequence of numbers would be printed if the procedure xxx were executed with N =2?

11。什么数字序列将印刷如果程序xxx被N = 2 ?

procedure xxx (N) procedure yyy (N)

程序xxx(N)程序yyy(N)

print the value of N; print the value of N;

打印N值;打印N值;

if (N < 3) apply the procedure xxx to the value 5;

如果(N < 3)应用程序xxx价值5;

then (apply procedure yyy print the value of N

然后(应用程序yyy打印N值

to the value 4);

价值4);

print the value of N

打印N值

_____________________

_____________________

12. Fill in the blank in the procedure below so that the procedure prints the integers from 0 up to the integer value it was given for N. That is, if the procedure is executed with N = 3, it should print 0, 1, 2, 3.

12。填写空白在程序下面,以便程序打印整数从0到整数值是给出N .也就是说,如果执行的程序与N = 3,它应该打印0、1、2、3。

procedure xxx (N)

程序xxx(N)

if (_________) then (apply the procedure xxx to the value N - 1);

如果(__)然后(应用程序xxx值N - 1);

print the value of N)


Assignment3(1)(8).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:海洋地质调查与研究元数据的标准化

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: