皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
程序功能:输入n的值(n<11),计算1!+2!+3!+......+n!,并输出计算结果。请完善程序。(程序有1个空,答案一行写一个,不要添加多余的空格)#include int main(){ int i, n; long sum=0,fac=1; //fac存储每个加项(阶乘)的值 printf("请输入n的值:"); scanf("%d",&n); for( i=1; i<=n; i++) { //后一加项与前一加项的关系sum=sum+fac; } printf("和为%ld\n",sum); return 0;}提示:可以参考“累加和”中讲解的最后一个例题
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】SECTION A CONVERSATIONS Directions: In this section you will hear several conversations. Listen to the conversations carefully and then answer the questions that follow. 听力原文:M: I don't understand. I ...
A.
The man did not have transportation to school.
B.
The man received a parking ticket.
C.
The man went to the Student Union.
D.
The man wanted to buy a parking permit.
【简答题】根据主题素材的根源可以将典型素材型主题饭店分为__________主题饭店和创造型主题饭店。
【判断题】When inputting you name and ID certificate number into the booking system, you should make sure that they are as same as that on your ID certificate. Otherwise you will fail to collect your ticket.
A.
正确
B.
错误
【简答题】火花塞中心电极和侧电极之间的间隙一般为____。
【简答题】Isabella: I’m calling to inquire about your requirements for (1) . In addition to some generally accepted rules, do you have any particular requirements? Maria: Well, (2) on company letterhead with a ...
【单选题】If you are picking property up for another person, what will be required?
A.
His/Her written authorization
B.
Your ID card
C.
A SIM card number
D.
A IMEI card number
【单选题】r日内瓦学派是由瑞士著名儿童心理学家()创立的
A.
阿德勒
B.
海德
C.
皮亚杰
D.
荣格
【单选题】If you click on the link in e-mail requesting you to verify your ID number or other important personal information online, it will take you to _________ which is a fake version of the reputable websit...
A.
a personal website
B.
a phishing website
C.
a podcasting website
D.
a portfolio website
【简答题】火花塞中心电极和侧电极之间的间隙一般为 。
【单选题】一般来说,高能点火系统采用的火花塞中心电极与侧电极之间的间隙为(?)。
A.
0.35~0.45
B.
0.45~0.55
C.
0.70~0.90
D.
1.10~1.30
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题