Can you please correct my code

whats wrong with my code

hello @tarunasree123
ur logic is correct ,just there are some formatting issue.
use \t to give spacing.

dont use endl here ->
image

check ur updated code here->