#include<stdio.h>
struct Student
{
int num[6];
char name[20];
float score[6];
}student[6];
int main()
{
float max(float a,float b);
float min(float x,float y);
int i;
float m=0.0,n=0.0;
for(i=0;i<=5;i++)
scanf("%d%s%f",student[i].num,student[i].name,student[i].score);
printf("The higher score is:\n");
for(i=0;i<=5;i++)
{
m=max(m,student[i].score);
n=min(n,student[i].score);
}
return 0;
}
float max(float a,float b)
{
return(a>b?a:b);
}
float min(float x,float y)
{
return(x<y?y:x);
}
struct Student
{
int num[6];
char name[20];
float score[6];
}student[6];
int main()
{
float max(float a,float b);
float min(float x,float y);
int i;
float m=0.0,n=0.0;
for(i=0;i<=5;i++)
scanf("%d%s%f",student[i].num,student[i].name,student[i].score);
printf("The higher score is:\n");
for(i=0;i<=5;i++)
{
m=max(m,student[i].score);
n=min(n,student[i].score);
}
return 0;
}
float max(float a,float b)
{
return(a>b?a:b);
}
float min(float x,float y)
{
return(x<y?y:x);
}