Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save trycf/40d43b0f6506a95394dda3158fb9ddfe to your computer and use it in GitHub Desktop.

Select an option

Save trycf/40d43b0f6506a95394dda3158fb9ddfe to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
numbers = [55,5,25,8,15];
maxNumber = numbers[1];
writeOutput(maxNumber);
for(i= 2; i <= arrayLen(numbers); i++){
if(numbers[i] > maxNumber){
maxNumber= numbers[i]
}
}
writeOutput(maxNumber);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment