-->
当前位置:首页 > 题库

单选题:The following program aims to find out the maximum in a group of

Luz5年前 (2021-05-10)题库770
The following program aims to find out the maximum in a group of positive data (ended with 0 as a sentinel), fill in the blank.
@[B](2)
```
#include
int main()
{
int a,max=0;
scanf("%d",&a);
while (a!=0){
if(max __________;
scanf("%d",&a);
}
printf("%d",max);
return 0;
}
```
A. a=max
B. max=a
C. a==max
D. max==a




A.a=max
B.max=a
C.a==max
D.max==a


答案:B