The value of c = n - a - b
let c = n - a - b ; if ( a * a + b * b == c * c && b > 0 && c > 0 ) { document . write ( a + " " + b + " " + c ) ; flag = 1 ; break ; } } if ( flag == 0 ) { document . write ( " " ) ; } return ; }