Constraint to generate values divisible by 5 in ascending order

In reply to chetansahu:

Hello chetansahu, thanks for your code. I tried this code, and it says “index out of bounds (values[(9 + 1)]) for unpacked array of packed elements in constraint”.