vb缺少子程序函数或属性?!!
PrivateSubForm_Load()Dima,b,cAsIntegerDime,f,g,hAsStringa,b,c=1Fora=1To20Forb=aTo20Fo...
Private Sub Form_Load()Dim a, b, c As IntegerDim e, f, g, h As Stringa , b, c = 1For a = 1 To 20 For b = a To 20 For c = b To 20 If (a ^ 2 + b ^ 2 = c ^ 2) Then e = Str(a) f = Str(b) g = Str(c) h = h + e + " " + f + " " + g + ";" End IfMsgBox h这个程序用来找到所有小于20勾股数的数组
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询