#include<stdio.h>
int main()
{
float k,max=0;
do{
scanf("%f",&k);
if(k<0){
break;
}
else{
if(k>max){
max=k;
}
}
}while(1);
printf("学生中的最高分:%0.2f",max);
return 0;
}
Enter a number of student scores from the keyboard (the number of students is unknown), and enter a negative number to indicate the end of the input. Find the highest score among all students
Guess you like
Origin blog.csdn.net/buxiangquaa/article/details/114989438
Recommended
Ranking