To run the program, save the code in a file with a .chpl extension and use the chpl compiler to compile and run it.
Chapel’s for loops and iterations provide powerful and flexible ways to work with various data structures. Let’s dive into more advanced features of the language in the next examples.