初学的小练习~~~ ^_^
#include <stdio.h>
#include <math.h>
#define NUMBER 20
int main()
{
int i,j,k,z,num;
int x[NUMBER] = {0};
int max;
//矩阵全部元素初始化为0//
int distribution[NUMBER][10] = {0};
printf("数据个数:");
//限制数据个数在0-100//
do {
scanf_s("%d", &num);
if (num < 0 || num>100)
printf("\a请输入1~100的数:");
} while (num < 0 || num >100);
//输入第n号分数//
for (i = 0; i < num; i++) {
printf("%d号:",i+1);
//限制分数在0-100//
do {
scanf_s("%d", &x[i]);
if (x[i] < 0 || x[i]>100)
printf("\a请输入1~100的数:");
} while