Turing 011 — Exponents
The exponent operator in Turing is two asterisks (“**”).
The following statement calculates the square of 3 (32):
put 3 ** 2
Assignment
Write a program that prints the answer of 2 to the exponent 8.
Save as "011.t".
The exponent operator in Turing is two asterisks (“**”).
The following statement calculates the square of 3 (32):
put 3 ** 2
Assignment
Write a program that prints the answer of 2 to the exponent 8.
Save as "011.t".