单选题:The following program aims to find out the maximum in a group of
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
@[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