fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <ctype.h>
  4.  
  5. int main() {
  6. char input[50];
  7. char lowerInput[50];
  8.  
  9. printf("Do you like watching black men\nhave sex?: ");
  10. fgets(input, sizeof(input), stdin);
  11. input[strcspn(input, "\n")] = 0;
  12.  
  13.  
  14. for (int i = 0; input[i]; i++) {
  15. lowerInput[i] = tolower(input[i]);
  16. }
  17. lowerInput[strlen(input)] = '\0';
  18.  
  19. if (strcmp(lowerInput, "yes") == 0) {
  20. printf("Me too!\n");
  21. } else if (strcmp(lowerInput, "no") == 0) {
  22. printf("Me neither.\n");
  23. } else if (strcmp(lowerInput, "I hate niggers") == 0) {
  24. printf("%s", "Motherfuckers.\nThem motherfuckin niggers wanna rule our motherfucking countries?\nThey should have stayed in our cotton farms.\nThose fucking niggers don't deserve to be living amongst humans.\nIf I see another nigger in my way from Walmart to home I'm gonna grab my shotgun and shoot him in the head.\nWe should take these motherfuckers and put them in farms!\nThey deserve to be whipped and disciplined, they have to be controlled.\nThem goddamn niggers think they own everything now. Just look at the streets,\nThere's niggers everywhere!\n");
  25. } else {
  26. printf("%s", "Motherfuckers.\nThem motherfuckin niggers wanna rule our motherfucking countries?\nThey should have stayed in our cotton farms.\nThose fucking niggers don't deserve to be living amongst humans.\nIf I see another nigger in my way from Walmart to home I'm gonna grab my shotgun and shoot him in the head.\nWe should take these motherfuckers and put them in farms!\nThey deserve to be whipped and disciplined, they have to be controlled.\nThem goddamn niggers think they own everything now. Just look at the streets,\nThere's niggers everywhere!\n");
  27. }
  28.  
  29. return 0;
  30. }
  31.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
Do you like watching black men
have sex?: Motherfuckers.
Them motherfuckin niggers wanna rule our motherfucking countries?
They should have stayed in our cotton farms.
Those fucking niggers don't deserve to be living amongst humans.
If I see another nigger in my way from Walmart to home I'm gonna grab my shotgun and shoot him in the head.
We should take these motherfuckers and put them in farms!
They deserve to be whipped and disciplined, they have to be controlled.
Them goddamn niggers think they own everything now. Just look at the streets,
There's niggers everywhere!