You can use "case" statement too. Or you can use an array of 7 elements to store each greetings. Good luck.