皮皮学,免费搜题
登录
搜题
【简答题】
下面程序可求出矩阵两条对角线上的元素之和。请分析程序填空。 main() { int a[3][3]= {1,3,6,7,9,11,14,15,17},sum1=0,sum2=0,i,j; for(i=0; i<3; i++) for(j=0; j<3; j++) if(i==j) sum1+=a[i][j]; for(i=0; i<3; i++) for(【1】; 【2】; j--) if(i+j==2) sum2+=a[i][j]; printf("sum1=%d,sum2=%d\n",sum1,sum2); }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】唐律中凡是不列入其他 “ 分则 ” 篇的犯罪,都归于( )。
A.
《杂律》
B.
《名例律》
C.
《户婚律》
D.
《职制律》
【判断题】缓冲包装特别适用于形状复杂的产品。
A.
正确
B.
错误
【简答题】Millions of people travel by plane every single day. If you're planning on being one of them soon, you might not be looking forward to the 26 feeling air travel often leaves you with. Besides the airp...
【简答题】英译汉(把下面这段文字翻译成汉语) A third disadvantage concerns income security. Self- employed people have no guaranteed wage. Their earnings can vary greatly, depending on business conditions. Salaried people, howe...
【单选题】唐律中凡是不宜列入其他“分则”篇的犯罪,统归于( )。
A.
《杂律》
B.
《名例》
C.
《户婚》
D.
《职制》
【单选题】下列常见的坍塌伤亡事故的预防措施中,说法不正确的是()。
A.
坑、沟、槽土方开挖,深度超过1.5m的,必须按规定放坡或支护
B.
挖掘土方可采用挖空底脚的操作方法,只要做好排水措施就好
C.
挖出的泥土要按规定放置或外运,不得随意沿围墙或临时建筑堆放
D.
基坑、井坑的边坡和支护系统应随时检查,发现边坡有裂痕,疏松等危险征兆,应立即疏散人员采取加固措施,消除隐患
【单选题】下列常见的防松方法中,(        )属于机械防松。
A.
弹簧垫圈式
B.
双螺母
C.
圆螺母与止动垫圈
D.
粘接剂
【单选题】According to the passage, the widely-held belief that Switzerland was irresistible to wealthy foreigners was __________ by banks themselves.
A.
denied
B.
criticized
C.
reviewed
D.
defended
【简答题】Another view, less widely held, is that increasing particular matter in the atmosphere is bloc king sunlight and lowering the earth's temperature--a result that would be equally disastrous. (Passage 1...
【判断题】教育应该使所有的儿童都达到同等水平。
A.
正确
B.
错误
相关题目: