current position:Home>Why is the output sorted by student number like this

Why is the output sorted by student number like this

2022-01-27 00:36:31 CSDN Q & A

img




Refer to the answer 1:

the second for The condition should be changed to :for(b=a+1;b<n;b++)




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270036302933.html

Random recommended