;; A triple is called a Pythagorean triple if a^2 + b^2 = c^2. ;; This program reads a, b, c from input and then ;; prints 1 if they form a Pythagorean triple, and ;; prints 0 otherwise. read 0 read 1 read 2 mul 0 0 0 mul 1 1 1 mul 2 2 2 add 3 0 1 seq 4 2 3 write 4 halt