答案:#include "stdio.h" #include "time.h" int main() { srand((int)time(NULL)); while(1) { printf(" %d " ,rand()%7+1); } return 0; }
上一个:C语言达人求助下一个:c语言运算优先级以及逻辑运算的结果,新手