Iteration - Khasi

391 visits



Outline:

Iteration Ka batai ia ka syntax jong ka 'for' statement- kaba iathuh ia ka jingiaid shi iaid jong ka list/vector/matrix (lane ka expression kaba evaluates ia kano kano na kine). Ka ai ia ka nuksa: na ka bynta i = 1:5, disp (i), end Nangta ka batai ia ka break condition. Pyndonkam ia ka nuksa: na ka bynta i = 1:10, disp(i), if (i==5), break, end, end Nangta ka batai ia ka condition kaba bteng. Pyndonkam ia ka nuksa: na ka bynta i = 1:10, if (i<=5) then continue, else disp(i), end, end Ka batai ia ka while condition. Ka ai ia ka nuksa: i = 0; while(i <=5), i = i + 1; d