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)
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库Assignment3(1)(8)在线全文阅读。
相关推荐: