Nth root: Difference between revisions
Content added Content deleted
(Added Wren) |
m (→{{header|Wren}}: More appropriate variable name: pair -> trio.) |
||
Line 3,224: | Line 3,224: | ||
} |
} |
||
var |
var trios = [ [1728, 3, 2], [1024, 10, 1], [2, 2, 5] ] |
||
for ( |
for (trio in trios) { |
||
System.print("%( |
System.print("%(trio[0]) ^ 1/%(trio[1])%(" "*trio[2]) = %(nthRoot.call(trio[0], trio[1]))") |
||
}</lang> |
}</lang> |
||