To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This code creates an array of 20 random integers, and then separates these into arrays that are even and odd, respectively
Description
Here is a brief description of the example:
This program uses auto indexing to run a for loop for each value in the array.
From there, it uses a quotient and remainder to check to see if the current integer is even or odd.
At that point, it uses the build array function to add the value to their respective array, even or odd.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.