All triangle between q and p are acute triangles . So add q - p in z .
z += q - p NEW_LINE print ( " Acute ▁ Triangle : " , x ) NEW_LINE print ( " Right ▁ Triangle : " , y ) NEW_LINE print ( " Obtuse ▁ Triangle : " , z ) NEW_LINE