#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main() {
char arr[][6] = { "凶","末吉","吉","小吉","中吉","大吉","大凶" };
srand(time(NULL));
int lucky = rand() % 6;
printf("你中了第%d签,是%s", lucky+1, arr[lucky]);
}
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main() {
char arr[][6] = { "凶","末吉","吉","小吉","中吉","大吉","大凶" };
srand(time(NULL));
int lucky = rand() % 6;
printf("你中了第%d签,是%s", lucky+1, arr[lucky]);
}