The Department of Computer Science & Engineering
|
|
STUART C. SHAPIRO: CSE
115 C
|
Example: To determine if a number (decimal, integer) is divisible by 3, add its digits. If the result is divisible by 3, so is the original number.
Böhm-Jacopini Theorem [Corrado Böhm and Giuseppe Jacopini (CACM, 1966)]: Any procedure can be written with the following control structures: