Write a subroutine check, which inputs 3 integers and checks if they can form a triangle (a=b+c is valid). Subroutine returns 1 if they can. 2 if not, and 0 if they were 0, 0, 0. Write a program that calls check and prints 'Y' on 1, or 'N'on 2, until check returns 0; then program must exit.
1 2 3 4 5 6 1 4 8 0 0 0
Y Y N