Create task_3.5

Using if_else if_else loop to check the conditions