Post History
Zsh, 25 bytes >2 <$@&&<<<5||<<<$[$1+$2] Attempt This Online! Explanation: >2;<$@: if both arguments are 2: &&<<<5: then print 5 ||&...
Answer
#1: Initial revision
# [Zsh](https://www.zsh.org), 25 bytes <pre><code>>2 <$@&&<<<5||<<<$[$1+$2]</code></pre> [Attempt This Online!](https://ato.pxeger.com/run?1=m724qjhjwYKlpSVpuhY77Yy4bFQc1NRsbGxMa2qApEq0iqG2ilEsRB6qbFm0kY6CUSyUBwA) Explanation: - `>2;<$@`: if both arguments are `2`: - `&&<<<5`: then print 5 - `||<<<$[$1+$2]`: otherwise print `$1 + $2`