Given a char variable  c that has already been declared , write some code that repeatedly reads a value from standard input into c until at last a \'Y\' or \'y\' or \'N\' or \'n\' has been entered. attempted code: while(c !=\'y\' && c !=\'Y\' && c !=\'N\' && c !=\'n\'){ scanf(\"%c\", &c); } why is this wrong? please provide correction thanks Solution Hi, This solution is correct. I dont see any issue over there. if you enter any one of the character y, Y,n and N then loop will terminate otherwise it will allow you to enter the chracters until you type any one of these characters y, Y, n, N. .