Error int he output


sir can you please check this program

@sraj39273 https://ide.codingblocks.com/s/588278

  1. Use else if for remaining conditions, because there’s a chance that after swapping once the remaining conditions may become true.
  2. if current element is 2 then also you have to perform swap

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.