读入N个不相同且不为0的数(l < N < 100),求出其中第R个大的数(1 < R < N)。
例如: 输人3,14, 22,15,17, 6,其中第3个大的数为15。
#include<iostream>
using namespace std;
int a[110];
int i, j, x, y, R;
int main()
{
cin >> R;
j = 0;
cin >> x;
while (___(1)____)
{
j = ___(2)_____;
a[j] = x;
cin >> x;
}
i = 0;
do
{
i = i + 1;
x = a[i];
y = 0;
for (int k = 1; k <=___(3)_____; k++)
if (x < a[k])
____(4)______;
} while (____(5)____);
cout << a[i] << endl;
return 0;
}