Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
751 B
2
Indexable
Never
 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.");
    }