Please correctmy code.Wrong output
you have done wrong
i have corrected it you can see it in code below
Modified Code
if you want to ask something about this feel free to ask
i hope this helps
if yes show your response with and don’t forgot to mark doubt as resolved