tasodifiy elementlar ro'yxati va eng kichik ko'paytma
Page preview (5 pages)
Scroll down 👇
About "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 = …
This file contains 6 pages in DOCX format (784.0 KB). To download "tasodifiy elementlar ro'yxati va eng kichik ko'paytma", click the Telegram button on the left.