题目内容

程序填空:编写一个函数,可以分别打印一个整数十进制的每一位。#include#include//#includevoid print(int n){if (n > 9){print(_________);}printf("%d\n", __________);}int main(){print(1234);return 0;}

查看答案
更多问题

描述递归需要满足的几个要素。

利用递归函数,求Fibonacci数列的第n项,其中,Fibonacci数列的通项公式为:F(n) = F(n-1) + F(n-2)且 F(0)=F(1)=1。

Directions:In the boxes below are some of the words and phrases you have learned in this unit. Choose the one that best completes the sentences.1.Curiosity naturally ____________ a person’s _____________, and thus their understanding of the things around them.2.It happens to ____________ the position that most Americans believe is the right way to go.3.Each country may send up to two candidates to ___________ youth in their home country.4. She was, and remained, extremely ___________, enjoying dancing, golf, tennis, skating and bicycling5.But today and for the foreseeable future, the principal threat to world order is not from some __________ great power.6.She felt _______ and protected when she was with him.7.Recent opinion polls show that 60 percent favor abortion under certain ______________.8.However, parents, teachers and students take on quite different views and, _____________, they seem not to have reached any compromises yet.9.In what area of your spiritual growth do you need to be more patient and _____________?10.As much I'd love to be thin, I'd never _____________ my health for that.11.Instead, I would rather raise issues, make people _____________ them, and then let them figure out how to solve the problems.12.Half of women are so _____________ of their appearance that they 'hate' looking at photographs of themselves, a study has found.13.Those who were injured were in _____________ condition and an investigation was ongoing, police said.14.And there are plenty more movies _____________ that may prove even more promising.15.Her program was _____________ successful and she led one of the most remarkable periods in the British economy.

Directions: In this part, there are 10 incomplete sentences in this part. For each sentence there are four choices marked A), B), C) and D). Choose the ONE that best completes the sentence.1.The most successful post-career athletes are those who can take the identity and life skillsthey learned in sports and _______ them to another area of life.

A. utilize
B. use
C. apply
D. exert

答案查题题库