Work out \$x^y\$ using only addition and subtraction
APL (Dyalog Unicode), 7 bytesSBCS



Anonymous tacit infix function. y is left argument and x is right argument.

(+/⍴)/⍴


Try it online!

⍴ cyclically reshape (gives y copies of x)

(…)/ reduce by the following function:

 ⍴ cyclically reshape to left argument copies of right argument

 +/ sum