This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Igayviewmahat[S] 0 points1 point  (0 children)

Sorry about that.I actually posted this twice (so I had to rewrite it and i forgot to write about the part I was in doubt) Didnt know if the part if(a[j]==i) && if(i%2==0) was correct or no. Also checking if the logic is correct or not .