Down Timer
Create a timer to count down from a given number of hours, minutes and seconds to zero. At intervals of five seconds, it outputs the time (remaining to zero).
1. Pythagorean Triplets
Construct an algorithm to produce all integers x, y, and z that satisfy the Pythagorean theorem (relating the sides of a right triangle):
x2 + y2 = z2 (where x < y=””><>
Let x, y, and z be positive integers, all less than some fixed input value M (say 100).