I added if and else if to check the value of a & b to show the specific message. At first I check the value of a if a is 0 or 1 or 2 or 3 or 4 or 5. If a is 0 and then i check the value of b and so on.

I think it's too simple. Let me know if there is a best way .
i check the value of a if a is 0 or 1 or 2 or 3 or 4 or 5. if the value of a is 1 and then i check the value of b.

i make it very simple. is there a better way to code it, let me know about it