Posts by Fernando Teobaldo • 19 points
1 post
-
1
votes6
answers14587
viewsA: Show the largest and smallest number
Save the values in an array and use the "for" for this case, the function becomes more flexible and serves for any number of arguments: var n = [1, 2, 3]; numero=n(i) for (i = 0; i < n.length;…