Error in the output


can you please check
the program

corrected code: