以下是对数组 a 进行冒泡排序的代码,在下划线处应填写的语句是( )
int a[10] = {10, 3, 2, 6, 5, 4, 9, 8, 7, 1};
int n = 10;
_________________________________
{
for (int j = 0; j < i; j++)
{
if (a[j] > a[j + 1])
{
int t = a[j];
a[j] = a[j + 1];
a[j + 1] = t;
}
}
}
for (int i = n - 1; i > 0; i--)
for (int i = 1; i < n; i++)
for (int i = n - 1; i > 1; i--)
for (int i = 1; i <= n; i++)