Home > Back-end >  Everyone a great god for help
Everyone a great god for help

Time:09-25

Keyboard input the student's student id (two digits), birthday (8 digits), gender, language and math scores, and the average and display output all the student information including average),

CodePudding user response:

No one?

CodePudding user response:

 # include 
//space interval input
Int main ()
{
int a;
A double ch, ma;
Char birth [8].
char sex;
Printf (" input student id, birthday, gender, language, mathematics achievement: \ n ");
The scanf (" % d ", & amp; A);
Char x=getchar ();
for(int i=0; i <8; I++)
{
The scanf (" % c ", & amp; Birth [I]);
}
X=getchar ();
Lf the scanf (" % c % % lf ", & amp; Sex, & amp; Ch, & amp; Ma);
Printf (" student id: % d \ n birthday: ", a);
for(int i=0; i <8; I++)
Printf (" % c ", birth [I]);
Gender: printf (" \ n \ n % c language result: % f \ n math: % f \ n score: % f ", sex, ch, ma, + ma (ch)/2);
return 0;
}

CodePudding user response:

[color# include & lt; the stdio. H>

Typedef struct
{
Int no;
Char birth [9].
Char sex [8].
Float Chi_score;
Float Math_score;
Float ave.
} Stu.

Int main ()
{
Stu Stu.
Printf (" input student number: ");
The scanf (" % d ", & amp; Stu. No);
Printf (" input birthday: ");
The scanf (" % s ", stu. Birth);
Printf (" input gender: ");
The scanf (" % s ", stu. Sex);
Printf (" input language result: ");
The scanf (" % f ", & amp; Stu. Chi_score);
Printf (" input mathematics performance: ");
The scanf (" % f ", & amp; Stu. Math_score);
Printf (" student information is as follows: \ n ");
Stu. Ave=(stu. Chi_score + stu. Math_score)/2;
Printf (" gender: student id: % d birthday: % s % s language result: %. 1 f math: %. The average grade: 1 f %. 1 f ", stu. No, stu. Birth, stu. Sex, stu. Chi_score, stu. Math_score, stu. Ave);
return 0;
}

CodePudding user response:

The
reference 2 floor? Victor.?? Response:
]

Shed for column

CodePudding user response:

The
reference 3 floor 5250 response:
}

Share talent

CodePudding user response:

refer to 4th floor and eat too much response:
Quote: refer to the second floor? Victor.?? Response:

]

Shed for column


How old man in the watershed and here

The dual?

CodePudding user response:

The
refer to 6th floor? Victor.?? Response:
Quote: refer to 4th floor and eat too much response:

Quote: refer to the second floor? Victor.?? Response:

]

Shed for column

How old man in the watershed and here
The dual?

Watershed, astigmatism and won't go to the,
Here, look for the small white

CodePudding user response:

refer to 7th floor and eat too much response:
Quote: refer to the sixth floor? Victor.?? Response:

Quote: refer to 4th floor and eat too much response:

Quote: refer to the second floor? Victor.?? Response:

]

Shed for column

How old man in the watershed and here
The dual?

Watershed, astigmatism and won't go to the,
Here, look for a small white


Actually here is quite good play

CodePudding user response:

The
reference 8 floor? Victor.?? Response:
does, indeed, here also is fun

Feel two more interesting
  • Related