I'm creating a program where typing anything other than Small, small, Large, large will re-prompt the user for input but what happens is that it only accepts "Large" but not the other correct inputs. output
#include <stdio.h>
#include <string.h>
int main()
{
char drinksize[5];
do
{
printf("\nEnter Drink Size (Small or Large): ");
scanf("%s", drinksize);
if(strcmp(drinksize, "Small") == 1 || strcmp(drinksize, "small") == 1 || strcmp(drinksize, "Large") == 1 || strcmp(drinksize, "large") == 1)
{
printf("Incorrect item number! Please try again.");
}
}
while (strcmp(drinksize, "Small") == 1 || strcmp(drinksize, "small") == 1 || strcmp(drinksize, "Large") == 1 || strcmp(drinksize, "large") == 1);
}