Answer: No,it is not possible to have a right triangle where the lengths of the legs are whole numbers and the length of the hypotenuse is 23.
Explanation:
According to the Pythagorean triplet, in a right angled triangle the hypotenuse is the longest side.
and it is given by
and other two legs are given by
and

Now, the longest side=


But 22 is not a perfect square
Since
and
, therefore the square root of 22 lies between 4 and 5.
Hence, it is not possible to have a right triangle where the lengths of the legs are whole numbers and the length of the hypotenuse is 23.