Output wrong in 4 cases

hi @samadsid7
there were slight errors in your code in two places
i have added comments over there
you can see.


now it’s working fine