This Code do not showing any output. What's the issue?

No showing 2nd test case wrong. only first is working fine…

hi @mohit26900
ur logic is absolutely correct… just a small mistake…
in ques it is mentioned list contains only names of those employees having salary greater than or equal to a given number x.
u have considered only greater than case , not greater than or equal to case…
so in line 35 just make it >= , ur code will pass all test cases…

corrected code --> https://ide.codingblocks.com/s/643261

hi @mohit26900
i hope its clear now??

Done Thank You Vaibhav Goyal

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.