In a college library, a staff can use the self-service book borrowing system to borrow books without going through librarians. To begin using the system, the staff member is required to enter his/her staff number ( a 4-digit integer value ) into the system. If a non-integer value is entered, the system will catch the exception and display the message “Invalid number”.
Write a try-catch statement that prompts the user for the staff number and displays a message “Welcome”.