我正在學習三角形的所有三邊的知識,它們是由用戶輸入的。我需要知道如果任何角度將等於90度 我已經查了這個數學,但很遺憾不知道如何嘗試使用它在三角形中找到直角
我正在找出用戶具有什麼樣的三角形每邊的長度
If First <> Second AndAlso Second <> Third AndAlso First <> Third Then
MsgBox("Triangle is scalene")
ElseIf First = Second AndAlso Second = Third AndAlso First = Third Then
MsgBox("Triangle is equilateral")
ElseIf First = Second Or Second = Third Or First = Third Then
MsgBox("Triangle is isosceles")
ElseIf rightangle Then
MsgBox("Triangle is right angle")
Else
MsgBox("UFT - Unidentified flying triangle")
End If
我不知道從哪裏開始,沒有形成缺乏嘗試
你一定需要[trig](https://www.mathsisfun.com/algebra/trig-solving-sss-triangles.html)。 –
如果你輸入的是角度,那你爲什麼不比較並檢查,如果任何值等於90? – Tushar
@TusharGupta輸入變量表示邊的長度,而不是角度。 – phoog