My program is displaying correct output but still 4th and 5th condition is not satisfied.Please help me to find the error in the program.