#include "stdio.h"
#include "stdlib.h"
#include "time.h"
int main(void){
int a[5][7],i,j;
double b[5],min;
srand((unsigned)time(NULL));
for(i=0;i<5;i++){
for(j=0;j<7;printf("%6d",a[i][j++]=rand()));
printf("\n");
}
printf("\n");
for(min=RAND_MAX,i=0;i<5;i++){
for(b[i]=0,j=1;j<6;b[i]+=a[i][j++]);
if(b[i]/=5.0,b[i]min=b[i];
printf("%g ",b[i]);
}
printf("\nThe MIN was %g\n",min);
printf("\n");
return 0;
}
///////////////////////////////////////////////////////
#include "stdio.h"
#include "stdlib.h"
#include "time.h"
#define N 4
int main(void){
unsigned m[N][N],i,j,sum;
srand((unsigned)time(NULL));
for(i=0;ifor(j=0;j printf("\n");
}
printf("\n");
for(sum=i=0;iprintf("%-11u",j=m[i][i]*m[i][i]-m[N-1-i][i]*m[N-1-i][i]);
sum+=j;
}
printf("\nThe sum of them is %u\n",sum);
printf("\n");
return 0;
}