Programming in PTC Mathcad Prime is easy and intuitive. This short video offers examples on how to use a “For” Loop when working with range variables and vectors and matrices. You can use these to iterate in Mathcad.
In the Programming Panel you’ll find all the programming constructs you’ll need.
When inserting them, Mathcad will make it even easier through its predefined structures.
For more Programming examples, you can consult Mathcad Prime's Help by pressing F1. You can also look directly here: https://support.ptc.com/help/mathcad/r7.0/en/index.html#page/PTC_Mathcad_Help%2Fexample_looping_and_control.html
All Programming constructs are premium Mathcad Prime functionality, which you can try free for 30 days by downloading the trial at https://www.mathcad.com/trial