更多"下列程序的功能是从键盘上输入若干员工的工资,统计并输出最高工资和最低工"的相关试题:
[填空题]以下程序的功能是:从键盘上输入若干个数字,当输入负数时结束输入,统计出若干
数字的平均值,显示结果。请填空。
Private Sub Form_click( )
Dim x,y As Single
Dim z As Integer
x=InputBox("Enter a score")
Do while 【13】
y=y+x
z=z+1
x=InputBox("Enter a score")
Loop
If z=0 Then
z=1
End If
y=y/z
msgbox y
End Sub
[填空题]以下程序的功能是:从键盘上输入若干个数字,当输入负数时结束输入,统计出若干数字的平均值,显示结果。请填空。
Private Sub Form_click( )
Dim x,y As Single
Dim z As Integer
x=InputBox("Enter a score")
Do while______。
y=y+x
z=z+1
x=InputBox("Enter a score")
Loop
If z=0 Then
z=1
End If
y=y/z
msgbox y
End Sub
[填空题]以下程序的功能是:从键盘上输入若干个数字,当输入负数时结束输入,统计出若干数字的平均值,输出结果。请填空。
Private Sub Form_click( )
Dim x,y As Single
Dim z As Integer
x=InputBox("Enter a score")
Do while 【8】
y=y+x
z=z+1
x=InputBox("Enter a score")
Loop
If z=0 Then
z=1
End If
y= 【9】
Print y
End Sub
[填空题]以下程序的功能是:从键盘输入若干个学生的成绩,统计出最高成绩和最低成绩,当输入负数时结束输入。
#include<stdio.h>
main( )
float x,amax,amin;
scanf("%f",&x);
amax=x:
amin=x;
while( )/*第一空*/
if(______)amax=x;/*第二空*/
if(x<amin)______;/*第三空*/
scanf("%f",&x);
printf("amax=%3.2f,amin=%3.2f/n",amax,amin);
[填空题]下面程序的功能是从键盘上输入若干学生的学习成绩,统计并输出最高成绩和最低成绩,当输入为负数时结束输入。
main( )
float x,amax,amin;
scanf("%f",&x);
amax=x:
amin=x:
while( (11) )
if(x>amax) amax=x;
if( (12) ) amin=x;
scanf("%f",&x);
printf("/namax=%f/namin=%fn",amax,amin);
[填空题]以下程序的功能是:从键盘上输入若干个学生的成绩, 统计并输出最高成绩和最低成绩,当输入负数时结束输入.请填空.
main( )
{ float x,amax,amin;
scanf("%f",&x);
amax=x; amin=x;
while( )
{ if(x>amax) amax=x;
if( ) amin=x;
scanf("%f",&x); }
printf("/namax=%f/namin=%f/n",amax,amin); }