tasodifiy elementlar ro'yxati va eng kichik ko'paytma
Предварительный просмотр (5 стр.)
Прокрутите вниз 👇
О "tasodifiy elementlar ro'yxati va eng kichik ko'paytma"
o’zbekiston respublikasi raqamli texnologiyalar vazirligi muhammad al-xorazmiy nomidagi toshkent axborot texnologiyalar universiteti ma’lumotlar tuzilmasi va algoritmlar fanidan 7-amaliy topshiriq toshkent – 2024 14- variant #include #include #include #include #include using namespace std; void tasodifiyroyxat(list & lst, int size, int minvalue, int maxvalue) { srand(time(0)); for (int i = 0; i & lst) { for (int num : lst) { cout & lst) { vector numbers(lst.begin(), lst.end()); int n = numbers.size(); if (n == 0) return 0; int maxlength = 1, currentlength = 1, product = 1; int currentproduct = numbers[0]; for (int i = 1; i maxlength) { maxlength = currentlength; product = currentproduct; } currentlength = 1; currentproduct = numbers[i]; } } if (currentlength > maxlength) { product = …
Этот файл содержит 6 стр. в формате DOCX (784,0 КБ). Чтобы скачать "tasodifiy elementlar ro'yxati va eng kichik ko'paytma", нажмите кнопку Telegram слева.