Дан целочисленный массив и число K, вывести индекс последнего элемента меньшего K. C++
#include
#include
#include
#include
using namespace std;
int main(int argc, char** argv) {
int n,k,j=0;
srand(time(NULL));
cout<<"n = "; cin>>n;
cout<<"k="; cin>>k; cout<
for (int i=0; i
{ a[i]=rand()/300; cout<
}
if (j>0) cout<
}
Оцени ответ
