/*
93 85 97 80 91 90
83 94 68 68 63 90
75 87 90 96 79 83
82 74 65 72 95 83
85 68 98 78 69 91
93 72 82 94 100 67
0 85 97 80 91 90
0 0 68 68 63 90
0 0 0 96 79 83
0 0 0 0 95 83
0 0 0 0 0 91
0 0 0 0 0 0
Press any key to continue
*/#include
#include
#include
#define M 6
#define N 6
void ClearLeftBottom(int a[][N], int m) {
int i,j;
for(i = 0; i
for(j = 0; j <= i; ++j)
a[i][j] = 0;
}
void Show(int a[][N], int m) {
int i,j;
for(i = 0; i
for(j = 0; j
printf("%5d",a[i][j]);
printf("\n");
}
printf("\n");
}
int main() {
int a[M][N],i,j;
srand((unsigned)time(NULL));
for(i = 0; i
for(j = 0; j
a[i][j] = rand() % 40 + 61;
Show(a,M);
ClearLeftBottom(a,M);
Show(a,M);
return 0;
}