parent
9341719b77
commit
ad0ced08ed
@ -1,25 +0,0 @@
|
||||
#include <stdio.h>
|
||||
typedef struct INFO
|
||||
{
|
||||
int num;
|
||||
float Maths;
|
||||
float Physics;
|
||||
float English;
|
||||
}Info;
|
||||
Info stu[3];
|
||||
void info();
|
||||
int main()
|
||||
{
|
||||
info();
|
||||
}
|
||||
void info()
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
scanf("%d%f%f%f", &stu[i].num, &stu[i].Maths, &stu[i].Physics, &stu[i].English);
|
||||
}
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
printf("%d %.1f %.1f %.1f\n", stu[i].num, stu[i].Maths, stu[i].Physics, stu[i].English);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue