To generate a random number either 1 or 2, you can use the following code: C. #include <stdlib.h> int random_number = (rand() % 2) + 1;
確定! 回上一頁