#include using namespace std; /* 用随机函数产生100个[0,99]范围内的随机整数, 统计个位上的数字分别为0,1,2,3,4,5,6,7,8,9的数的个数并打印出来 */ #define MAX 101 void input(int num[]) { int i; srand((unsigned)time(NULL)); for(i=1; i