题目内容

Activity 3Grammar: Fill in the blanks with the proper form of words given in the brackets.1. My mobile phone is power off. ______ I use yours for a moment?2. One ___________ pay attention to the telephone etiquette when using telephones in public.3. A more suitable mode of communication like this__________ be found.4. You__________ spend too much time on your smart mobile phone.5. As long as you use Wechat, the payment _______ be made in a second.

查看答案
更多问题

*阅读下列程序,分析程序,并写出程序运行结果。1.#include void reverse(int n){if(n>0){printf("%d",n%10);reverse(n/10);}}int main( ){int num;scanf("%d",&num);reverse(num);printf("\n");return 0;}输入:36782

*阅读下列程序,分析程序,并写出程序运行结果。2.#include int sum(int n){if(n==1)return n;else return sum(n-1)+n;}int main( ){int n;scanf("%d",&n);printf("%d",sum(n));return 0;}输入:100

*依据题目要求,分析已给出的语句,填写空白。但是不能增行或删行,不能改动程序的结构。1.计算s =12!+ 22! + 32! +42! 。编写两个函数,一个用来计算平方值的函数f1,另一个用来计算阶乘的函数f2。主函数先调用f2,f2再调用f1计算出平方值,然后计算出该平方值的阶乘返回主函数,在主函数中计算累加和。#include int f1(int m){① ;}double f2(int n){int i,r;double c=1;② ;for(i=1;i<=r;i++)c=c*i;printf("%d! =%.0f\n",r,c);return c;}int main( ){int i,n;double s=0;printf("n=");scanf("%d",&n);for (i=1;i<=n;i++)③ ;printf("s=%.0f\n",s);return 0;}

*依据题目要求,分析已给出的语句,填写空白。但是不要增行或删行,改动程序的结构。下面函数的功能是判断数组a[]的前n个元素是否非递减,如果非递减返回1,否则返回0。#include #define N 5int dec(int a[],int n){if(n==1) return 1;if(a[n-2]>a[n-1])return 0;elsereturn ① ;}int main( ){int a[N],f,i;printf("随意输入N个整数,判断是否非递减序列:");for(i=0;i

答案查题题库