Answer:
#include <stdio.h>
#include <string.h>
int main() {
char userString[20]; // Assuming the maximum length of user input is 20 characters
printf("Enter a string: ");
fgets(userString, sizeof(userString), stdin);
userString[strcspn(userString, "\\")] = '\0'; // Remove the newline character
if (strcmp(userString, "Quit") == 0) {
printf("Goodbye\\");
} else {
printf("Hello\\");
}
return 0;
}