12. Quiz M
(back13
) Take each multiple of 13 that appears in the array and change all of
the numbers before it to be that multiple of 13, until you come to
another multiple of 13.
Examples:
back13([11,12,13,14])
=>[13,13,13,14]
back13([40,39,50,52,60])
=>[39,39,52,52,60]
back13([21,23,25,26,90,65,17])
=>[26,26,26,26,65,65,17]
Last modified February 17, 2022: AP CS Array unit - cleanup and organization. (d3e09c6)