What’s wrong in my code
It’s not running fine
What’s wrong in my code
It’s not running fine
hi @vivek21 it is recommended that you try this question using a separate class that contains a salary and a name variable in it … so that when you create a list or array for the same you can use that class as the datatype . This way the code will become very easy for you.
Try it this way and then send your code if you are obstructed somewhere.
okay, i will try this problem after studying CLASSES.
Thank you
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.
Now please check my code. Whats the problem? Its printing one element again and again.