Turing 008 — Subtraction
The subtraction operator in Turing is a hyphen (“-”).
The following statement subtracts the number 3 from 4:
put 4 - 3
Assignment
Write a program that subtracts 5 from 6.
Save as "008.t".
The subtraction operator in Turing is a hyphen (“-”).
The following statement subtracts the number 3 from 4:
put 4 - 3
Assignment
Write a program that subtracts 5 from 6.
Save as "008.t".