tasodifiy elementlar ro'yxati va eng kichik ko'paytma

DOCX 6 sahifa 784,0 KB Bepul yuklash

Sahifa ko'rinishi (5 sahifa)

Pastga aylantiring 👇
1 / 6
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 = currentproduct; } return product; } int main() { list numbers; int size = 10, minvalue = -10, maxvalue = 10; tasodifiyroyxat(numbers, size, minvalue, maxvalue); cout << "royxat elementlari: "; ekrangachiqish(numbers); …
2 / 6
tasodifiy elementlar ro'yxati va eng kichik ko'paytma - Page 2
3 / 6
tasodifiy elementlar ro'yxati va eng kichik ko'paytma - Page 3
4 / 6
tasodifiy elementlar ro'yxati va eng kichik ko'paytma - Page 4
5 / 6
tasodifiy elementlar ro'yxati va eng kichik ko'paytma - Page 5

Ko'proq o'qimoqchimisiz?

Barcha 6 sahifani Telegram orqali bepul yuklab oling.

To'liq faylni yuklab olish

"tasodifiy elementlar ro'yxati va eng kichik ko'paytma" haqida

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 = …

Bu fayl DOCX formatida 6 sahifadan iborat (784,0 KB). "tasodifiy elementlar ro'yxati va eng kichik ko'paytma"ni yuklab olish uchun chap tomondagi Telegram tugmasini bosing.

Teglar: tasodifiy elementlar ro'yxati v… DOCX 6 sahifa Bepul yuklash Telegram