Untitled
unknown
plain_text
2 years ago
751 B
7
Indexable
char gender[20];
printf("Please enter your preferred pronouns (e.g., he/him, she/her, they/them): ");
scanf("%s", gender);
if (strcmp(gender, "he/him") == 0) {
printf("Do you have male anatomy (yes/no)? ");
} else if (strcmp(gender, "she/her") == 0) {
printf("Do you have female anatomy (yes/no)? ");
} else {
printf("Are you comfortable sharing information about your anatomy (yes/no)? ");
}
char anatomy[3];
scanf("%s", anatomy);
if (strcmp(anatomy, "yes") == 0) {
// Here, you can collect more specific information about their anatomy if needed.
printf("Thank you for sharing!");
} else {
printf("Thank you for your response.");
}
Editor is loading...