It is known that angle a is an internal angle of triangle ABC, and sinA.cosA Is the two roots of the equation 2x-2x + P = 0, try to determine the shape of the triangle

It is known that angle a is an internal angle of triangle ABC, and sinA.cosA Is the two roots of the equation 2x-2x + P = 0, try to determine the shape of the triangle

By Weida theorem
sinA+cosA=1
sinA^2+cosA^2=1
The solution is sin a = 1 or 0
So a is a right angle