皮皮学,免费搜题
登录
搜题
【单选题】
用函数编程计算并输出如图所示的 三角形 。按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。 #include #define N 20 void CaculateYH(int a[][N], int n); void PrintYH(int a[][N], int n); int main() { int a[N][N] = {0}, n; printf("Input n(n<20):"); scanf("%d", &n); CaculateYH(a, n); PrintYH(a, n); return 0; } /* 函数功能:计算三角形前n行元素的值 */ void CaculateYH(__________, int n) { int i, j; for (i=0; i { a[i][0] = 1; ___________; } for (_______; i { for (j=1; j<=i-1; j++) { a[i][j] = __________________; } } } /* 函数功能:输出三角形前n行元素的值 */ void PrintYH(int a[][N], int n) { int i, j; for (i=0; i { for (j=0; _________; j++) { printf("%4d", a[i][j]); } printf("\n"); } }
A.
第16行:    int a[][] 第22行:    a[i][i] = 1 第24行:    i=1 第28行:    a[i-1][j-1] + a[i-1][j] 第38行:    j<=i< /div>
B.
第16行:    int a[][N] 第22行:    a[0][i] = 1 第24行:    i=2 第28行:    a[i-1][j-1] + a[i-1][j] 第38行:    j
C.
第16行:    int a[][N] 第22行:    a[i][i] = 1 第24行:    i=2 第28行:    a[i-1][j-1] + a[i-1][j] 第38行:    j<=i< /div>
D.
第16行:    int a[N][] 第22行:    a[i][i] = 1 第24行:    i=2 第28行:    a[j-1][i-1] + a[j][i-1] 第38行:    j<=i< /div>
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【判断题】条件致病菌对人体或动物一定具有致病性
A.
正确
B.
错误
【多选题】同步发电机原始磁链方程中,都有那些电感系数为常数,那些电感系数是随着转子的旋转而变化的?变化的原因是什么?
A.
转子绕组的自感系数
B.
子绕组之间的互感系数
C.
定子三相绕组的自感系数
D.
定子三相绕组之间的互感系数为常数
【单选题】听力原文:W: Can I help you, sir? M: Yes, I'm looking for a watch. W: What kind of watch are you interested in, a dress watch or a sports watch? M: A dress watch. W: We have quite a few famous watches here...
A.
A dress.
B.
A watch.
C.
A pair of sports shoes.
【简答题】隐极式同步发电机原始磁链方程中,都有那些电感系数为常数,那些电感系数是随着转子的旋转而变化?变化的原因是什么?
【简答题】怂恿,利诱 免疫的,不受影响的 继续进行,继续做,前进,移动 调节,协调 使模糊,使看不清
【简答题】某跨径为20m以内石拱桥工程,其浆砌块石拱圈工程量为300m3,若人工单价为20元/工日,原木的预算价格为900元/m3,锯材的预算价格为1200元/m3,铁钉的预算价格为4元/kg,铁丝的预算价格为3.8元/kg,32.5级水泥的预算价格为300元/kg,水的预算价格为1元/m3,中(粗)砂的预算价格为68元/m3,块石的预算价格为85元/m3。试求浆砌块石拱圈的直接费和定额直接费。 资料:浆砌...
【单选题】听力原文:Tom turns on the television to watch the play.
A.
B.
C.
【单选题】以总结产品特点的主要优势及其给目标顾客带来好处来结束产品的介绍叫 ( )。
A.
小点促进性成交
B.
赞扬性成交
C.
供应压力性成交
D.
利益总结型成交
【单选题】听力原文:M: Did you watch television last night? W: No, I didn't. I seldom watch it anymore. M: Why is that? W: There are only a few programs that I find interesting enough to watch. M: Well, there are so...
A.
Because she has no time.
B.
Because she doesn't like to watch the TV ads.
C.
Because she hardly finds interesting programs to watch.
D.
Because she has no TV set.
【单选题】听力原文:W: When will my watch be ready? M: Well, it is 7:00 o'clock by my watch, and I'll get it ready in a couple of hours. Q: When can the woman get her watch? (10)
A.
At 9 A.M.
B.
At 9 P.M.
C.
At 2 A.M.
D.
At 12 P.M.
相关题目:
关于我们
免责声明
版本记录
© 2019 pipixue.com 京ICP备20000060号-6