On Sunday, Monday, and Tuesday; my program is supposed to ask, "Enter the number of [name of food] you can eat". It asks this question after you enter the food you want to eat. But that question is asked every day. How do I fix this?
Here's my code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char**argv)
{
    char *day[20];
    char food[20];
    int numFood;
    printf("Enter food: ");
    scanf("%s", &food);
    printf("Enter day: ");
    scanf("%s", day);
    //determines what food the picky eater would eat
    if((strchr(day, "Sunday") == 0 || strchr(day, "Monday") == 0 || strchr(day, "Tuesday")) && (food[0] != 'm' || food[0] != 'k'))
    {
       printf("Mmmm...can\'t wait to eat %s today!!!\n", food);
       printf("Enter the number of %s you can to eat: ", food);
       scanf("%d", &numFood);
       if(numFood > 3)
       {
           printf("That\'s a lot of %s!", food);
           exit(0);
       }
    }
    else
    {
        printf("Sorry, on Sundays/Mondays/Tuesdays I can\'t eat that...");
        exit(0);
    }
    if((strchr(day, "Wednesday") == 0 || strchr(day, "Thursday") || strchr(day, "Friday")) && food[0] != 'j')
       {
           printf("Mmmm...can\'t wait to eat %s today!!!", food);
           exit(0);
       } else {
            printf("Sorry, on Wednesday/Thursday/Friday I can\'t eat that...");
            exit(0);
        }
    if(strcmp(day, "Saturday") && strlen(day) <= 7 && food[0] == 'p')
    {
        printf("\nMmmmm...can\'t wait to eat %s today!!!", food);
        exit(0);
    } else {
        printf("\nSorry, on Saturdays I can\'t eat that...");
    }
    return 0;
}
 
     
     
    