im trying to make this program work. it is supposed to print man when we enter male,Male,M or m and female if anything else is entered.... but it prints man all the time... thank you
Did you make sure to have == and not = for all of your conditions in the if statement? In Esslercuffi's post, it appears he made the mistake of only putting one equals sign for the last condition when checking if gender == "m"