as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
write an algorithm that generates an array of even numbers from 0 to 100
user
1. initialize an empty array
2. iterate over a range of numbers (0 to 100)
3. if a number is even, append it to the array
4. return the array
7
assistant