Error in the program

Modified code

check now