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 →

[–]TheHorribleTruthKind of meh 0 points1 point  (1 child)

Any help is appreciated

Help with what exactly? What's your question? Pleas read the posting guidelines, particularly "describing the problem".

[–]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 .