According to my information you should try to make use of switch block for this program. and that will be better to make these conditional based prog..