+ 2

How working this code?

Help me please! What mean x>=x!=5 in this code?! It even compile... int[] fibs = {0,1,1,2,3,5,8} ; int n = fibs.Count(x=>x!=5) ; Console.WriteLine(n*2); Answer is 12...

25th Apr 2019, 7:23 PM
id001x
id001x - avatar
6 odpowiedzi
+ 1
What language is it ? Pleae put the language you use in the tags. Can you copy the code in the playground and post a link
25th Apr 2019, 7:37 PM
sneeze
sneeze - avatar
+ 1
Thank you! =)
25th Apr 2019, 7:49 PM
id001x
id001x - avatar
0
C# yes, you are right! x=>x!=5 i try change , it's compile but answer always 12. i don't understand ...
25th Apr 2019, 7:40 PM
id001x
id001x - avatar
0
Yeah! I see you already find this )
25th Apr 2019, 8:40 PM
id001x
id001x - avatar