Averages/Mode: Difference between revisions

Content added Content deleted
m (→‎version 1: added/changed comments, indentations, and whitespace, simplified the subroutine and the function.)
m (→‎version 1: added punctuation.)
Line 2,094: Line 2,094:
=={{header|REXX}}==
=={{header|REXX}}==
===version 1===
===version 1===
Returns one mode value
Returns one mode value.
<lang rexx>/*REXX program finds the mode (most occurring element) of a vector. */
<lang rexx>/*REXX program finds the mode (most occurring element) of a vector. */
/* ════════vector══════════─ ═══show vector═══ ═─═══show result═════ */
/* ════════vector══════════─ ═══show vector═══ ═─═══show result═════ */