[填空題] 以下程序的功能是:從鍵盤上輸入若干個學(xué)生的考試分?jǐn)?shù),當(dāng)輸入負(fù)數(shù)時結(jié)束輸入,然后輸出其中的最高分?jǐn)?shù)和最低分?jǐn)?shù)。請?jiān)诳瞻滋幪钊脒m當(dāng)?shù)膬?nèi)容,將程序補(bǔ)充完整
2021-07-20
[填空題] 以下程序的功能是:從鍵盤上輸入若干個學(xué)生的考試分?jǐn)?shù),當(dāng)輸入負(fù)數(shù)時結(jié)束輸入,然后輸出其中的最高分?jǐn)?shù)和最低分?jǐn)?shù)。請?jiān)诳瞻滋幪钊脒m當(dāng)?shù)膬?nèi)容,將程序補(bǔ)充完整。
Private Sub Form_Click()
Dim x As Single, amax As Single, amin As Single
x=InputBox("Enter a score")
amax=x
amin=x
Do, While______
If x>amax Then
aman=X
End If
If______Then
amin=x
End If
x=InputBox("Enter a Score")
Loop
Pnnt"Max="; amax, "Min=";amin
End Sub
正確答案:x>=0;x<amin
詞條內(nèi)容僅供參考,如果您需要解決具體問題
(尤其在法律、醫(yī)學(xué)等領(lǐng)域),建議您咨詢相關(guān)領(lǐng)域?qū)I(yè)人士。