01-06-2016 01:46 PM
01-06-2016 02:24 PM - edited 01-06-2016 02:27 PM
01-06-2016 02:40 PM
01-06-2016 02:46 PM
01-06-2016 03:10 PM - edited 01-06-2016 03:11 PM
ouadji wrote:my way is faster (large array)
![]()
Yup, I arrived at the same code in the end.... 😄
01-10-2016 04:46 AM
Thank you everyone for your hep. I have been able to get it done.
01-10-2016 05:47 AM
your code need some change
you have to add this at then end -1*( your last value -maximum number of array+1) /2
01-10-2016 06:13 AM - edited 01-10-2016 06:15 AM
@Hatef wrote:
your code need some change
There are quite a few code examples above. You need to be more specific. Ideally quote the post you are replying to.
Hatef wrote:you have to add this at then end -1*( your last value -maximum number of array+1) /2
Why don't you show us some LabVIEW code instead?
Why would the last value matter? The sum does not depend on the order of elements.
The maximum number in the array is also irrelevant. Even if the max is 9999999, the sum will be zero if there are no even numbers.
01-10-2016 11:28 AM
Dear altenbach sorry for my mistake I test your code with notro instead of or and when I test with or as same as your pic it work and realy work nice thank you for your code and sorry for my mistake