mercredi 29 novembre 2017

how can i fills two-dimensional with random numbers even and odd?

I have an assignment to do and i have been stuck on this for about 4 hours now and i have no idea how to do it, i have to: Define function "fillArray" that takes as arguments a two-dimensional array of 7 columns, the number of rows, and the number of columns. This function fills the two-dimensional with Random Numbers Between 37 and 67; such that, the 1stnumber is odd, the ndis even, the 3rdis odd, the 4this even, and so on... sample output of how the 2d array should look like




Aucun commentaire:

Enregistrer un commentaire