fin premeierer seance
This commit is contained in:
parent
ca552281c9
commit
1043182b8b
BIN
student_rank
Executable file
BIN
student_rank
Executable file
Binary file not shown.
@ -55,7 +55,6 @@ int find_rank_student(int student_grade, int* grades_array, int students_number)
|
|||||||
{
|
{
|
||||||
int position = -1;
|
int position = -1;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
bubblesort(grades_array,students_number);
|
|
||||||
for (i = students_number - 1; i >= 0; i--)
|
for (i = students_number - 1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
if (grades_array[i] == student_grade)
|
if (grades_array[i] == student_grade)
|
||||||
@ -122,4 +121,3 @@ int main(int argc, char** argv)
|
|||||||
free(student_ranks);
|
free(student_ranks);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user