单选题:The following program is to find out the maximum in a group of p
The following program is to find out the maximum in a group of positive data (inputting 0 as a cutoff), fill in the blank.
```
#include
int main()
{
int a,max=0;
scanf("%d",&a);
while (a!=0){
if(max __________;
scanf("%d",&a);
}
printf("%d",max);
return 0;
}
```
@[B](1)
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
```
#include
int main()
{
int a,max=0;
scanf("%d",&a);
while (a!=0){
if(max __________;
scanf("%d",&a);
}
printf("%d",max);
return 0;
}
```
@[B](1)
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