好的,谢谢您了,高分回报!
追答完成了 哈哈
矩阵为:
20 1 22
84 16 32
80 6 78
65 73 36
矩阵中最大数为:84,最小数为:1。
Press any key to continue
#include
#include "stdlib.h"
#include "time.h"
main()
{
int i,j,*p,maxi,mini,count=1,arry[3][4];
p=arry[0];
srand((unsigned)time(NULL));
for (i=0;i*p)
{
mini=*p;
}
if (count%3==0)
{
printf("\n");
}
p++;
count++;
}
printf("\n矩阵中最大数为:%d,最小数为:%d。\n",maxi,mini);
return 0;
}