RosettaCodeData/Task/Exponentiation-order/AWK/exponentiation-order.awk

8 lines
174 B
Awk
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
# syntax: GAWK -f EXPONENTIATION_ORDER.AWK
BEGIN {
printf("5^3^2 = %d\n",5^3^2)
printf("(5^3)^2 = %d\n",(5^3)^2)
printf("5^(3^2) = %d\n",5^(3^2))
exit(0)
}