关于vb求长方形面积的程序代码,vb三角形面积代码这个很多人还不知道,今天小六来为大家解答以上的问题,现在让我们一起来看看吧!
1、运用海伦公式dim P as long,S as longif a+b>c then if b+c>a then if a+c>b then p=(a+b+c)/2 S=sqr(p*(p-a)*(p-b)*(p-c)) end if end ifend if。
本文到此分享完毕,希望对大家有所帮助。