CODE NOT SHOWING OUTPUT AS EXPECTED

here is your code:

your code was over complicating

atleast let me know whats wrong with my code