You are viewing a single comment's thread. Return to all comments →
Also you can initialize i to 1 and no need to add 1 to i in each loop iteration. I know as programmers we are accustomed to counting from 0 :)
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →
Also you can initialize i to 1 and no need to add 1 to i in each loop iteration. I know as programmers we are accustomed to counting from 0 :)