y=a(1) For i=1 To 100 If y<a(i) Then y=a(i) Next i Label2.Caption=y
第2个回答 2019-05-02
Dim intMin As Long,Flag As Integer For i=1 To 100 If a(i) Mod 2=1 Then intMin=a(i)*i Flag=i Exit For End If Next i For i=Flag+1 To 100 If a(i) Mod 2=1 And a(i)*i<intMin Then intMin=a(i)*i End If Next i Label2.Caption=intMin本回答被提问者采纳