Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Algorithms/Find maximum/jscript 6

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

function findMaxFourEle(i_intA,i_intB,i_intC,i_intD) { var o_intMax = i_intA; if ( i_intB > o_intMax ) o_intMax = i_intB; if ( i_intC > o_intMax ) o_intMax = i_intC; if ( i_intD > o_intMax ) o_intMax = i_intD; return o_intMax; } // end method function findMaxThreeEle(i_intA,i_intB,i_intC) { return findMaxFourEle(i_intA,i_intB,i_intC,i_intC); } // end method document.write(findMaxThreeEle(3,4,5));