hey guys, so here is how the program works.
when the user enters any letter besides m or f, it should ask the question again. if the user enters m or f, then the program proceeds. In this situation, when the user enters m, the program proceeds, but when the user enters f, the program repeats the question again. Why is that, and how do i fix this? I tried using the OR ( the two vertical bars) but that didnt work either.
Code:do{ printf("What's your gender? Enter m or f >>> "); scanf(" %c", &gender); } while (gender != 'm' && 'f');