Tuesday, 15 May 2012

Examples of Raptor determine the value of max and min of n numbers (array)


1 comments:

  1. it would be nice to know how to get the max value of an initialized array.
    example:
    sword[1] 25
    sword[2] 10
    sword[3] 15
    sword[4] 35
    sword[5] 08
    --------------
    so that you look at all those values in the array and pull them out without having to use a selection to say sword[1] > sword[2] and sword [1] > sword[3] and sword[1] > sword[4] and sword[1] > sword[5]

    for each array element. It seems over encumbered. Do you know of a way to just be like:
    is sword [1] > sword2-5? and so on and so forth for the other selections?

    ReplyDelete

.

.

.

.
Design by BlogSpotDesign | Ngetik Dot Com