Yeah, your code does this this:
If payroll number matches with employee payroll. Print employee details.
If payroll number does not match with employee payroll. Print "There is no such employee".
what you should of done:
If payroll number matches with employee payroll. Print employee details.
If there payroll does not match with ANY employee payroll. Print "There is no such employee".
If payroll number matches with employee payroll. Print employee details.
If payroll number does not match with employee payroll. Print "There is no such employee".
what you should of done:
If payroll number matches with employee payroll. Print employee details.
If there payroll does not match with ANY employee payroll. Print "There is no such employee".
When my code doesn't work I don't know why **think** and when my code works I don't know why **think**