local fmt = require "fmt" local ops = { "5 ^ 3 ^ 2", "(5 ^ 3) ^ 2", "5 ^ (3 ^ 2)" } local res = { 5 ^ 3 ^ 2, (5 ^ 3) ^ 2, 5 ^(3 ^ 2) } for i = 1, #ops do fmt.print("%-13s -> %.0f", ops[i], res[i]) end