Post History
#3: Post edited
# [AWK], ~~28~~ 26 bytes{print $1~2&&$2~2?5:$1+$2}[Try it online!][TIO-lwhzwzt4]- [AWK]: https://www.gnu.org/software/gawk/manual/gawk.html
[TIO-lwhzwzt4]: https://tio.run/##SyzP/v@/uqAoM69EQcWwzkhNTcWozsje1ErFUFvFqPb/fyMFIwA "AWK – Try It Online"
- # [AWK], ~~28~~ ~~26~~ 21 bytes
- $0=$1~2&&$2~2?5:$1+$2
- [Try it online!][TIO-m3pyjg4x]
- [AWK]: https://www.gnu.org/software/gawk/manual/gawk.html
- [TIO-m3pyjg4x]: https://tio.run/##SyzP/v9fxcBWxbDOSE1NxajOyN7USsVQW8Xo/39TBVMuIwUjAA "AWK – Try It Online"
#2: Post edited
# [AWK], 28 bytes{print $1==2&&$2==2?5:$1+$2}[Try it online!][TIO-lwe9tqnp]- [AWK]: https://www.gnu.org/software/gawk/manual/gawk.html
[TIO-lwe9tqnp]: https://tio.run/##SyzP/v@/uqAoM69EQcXQ1tZITU3FCEjZm1qpGGqrGNX@/2@kYAQA "AWK – Try It Online"
- # [AWK], ~~28~~ 26 bytes
- {print $1~2&&$2~2?5:$1+$2}
- [Try it online!][TIO-lwhzwzt4]
- [AWK]: https://www.gnu.org/software/gawk/manual/gawk.html
- [TIO-lwhzwzt4]: https://tio.run/##SyzP/v@/uqAoM69EQcWwzkhNTcWozsje1ErFUFvFqPb/fyMFIwA "AWK – Try It Online"