php - 2D array, it is possible with just Javascript? -
i have exercise i'm not sure if can done javascript, i'll write down here:
you 3 numbers n, m, k user using prompt dialogs. number n determines dimension of table or 2d array. m determines value first element (with position 0,0) should take. walking diagonally through table or array, should increment value m k. should fill each row , column values 1 less previous element. after filling elements, should output table or array on screen. here example:
so question is, have php? in case, me?
two dimensional arrays supported trough program languages out there including javascript , php. difference between languages user input , output interface , speed of calculations.
so answer exact question - possible both javascript , php.
here tutorial how work 2d arrays in javasscript.
Comments
Post a Comment