Algorithm for calculating the area of ​​any triangular triangle

xiaoxiao2021-03-06  18

Private Sub Command1_Click () DIM A, B, C AS INTEGERDIM S AS LONG

A = CINT ("InputBox")) B = CINT (INPUTBOX ("InputBox)) C = CINT (INPUTBOX (" INPUTBOX)) IF A B> C OR A C> B or B C> a THEN S = (A B C) / 2 msgbox "three sides:" CSTR (a) "," CSTR (b) "," CSTR (C) "triangular area is:" CSTR (SQR (s * (s - a) * (s - b) * (s - c))) ELSE MSGBOX must 2 Greater than the third side ", Vbokonly," Introduction Error "end ifend sub

转载请注明原文地址:https://www.9cbs.com/read-45821.html

New Post(0)