题目内容

有一个3*2的矩阵,编程序求出其中值最大的那个元素的值,以及其所在的行号和列号。请将程序填写完整。#include int main(){ int i,j,row=0,colum=0,max;int a[3][2]={{1,2},{9,8},{-10,10}}; //定义数组并赋初值max=a[0][0]; //先认为a[0][0]最大for(i=0;i<=____;i++)for(j=0;j<=____;j++)if(a[i][j]>max){ ;row=i;colum=j;}printf("max=%d\nrow=%d\ncolum=%d\n",max,row,colum);return 0;}

查看答案
更多问题

Power Supplies are electronic circuits designed to convert AC ( Alternating Current ) to DC ( Direct Current ) at any desired level.

A. 交流电
B. 转换
C. 直流电
D. 电源供应器

A power supply can be broken down into a series of blocks: transformer, rectifier, filter, and voltage regulator, each of which performs a particular function.

A. 被分成一系列
B. 模块
C. 执行
D. 特定功能

The transformer can convert AC electricity from one voltage to another with little loss of power. Most power supplies use a step-down transformer to reduce the high AC mains voltage ( 230V or 110V ) to a safer low AC voltage .

A. 电源
B. 变压器
C. 损耗
D. 降压

The rectifier uses the ability of a diode to conduct during one half cycle of AC to convert AC to DC. A single diode rectifier only uses the positive half part of the AC wave to produce a half-wave varying DC.

A. 整流器
B. 正半周期
C. 二极管
D. 导通

答案查题题库