|
|
səhifə | 20/43 | tarix | 24.12.2023 | ölçüsü | 1,01 Mb. | | #192019 |
| algoritm Yakuniy2-kurs Yig`ma Javobi (3)Bu səhifədəki naviqasiya:
- Javob= 1,3,4,5,6,7,8,9,10 Задание 274
- Javob= 1,3,4,5,6,7,8,9,10 Задание 275
- Javob= 4,8
- Javob= 18 Задание 277
- Javob= 14,5,16,27,18,14,10 Задание 278
Javob= 1,4,6,7,8,10
Задание #273
Вопрос:
Quyidagi surov natijasi nimaga teng:
List list = new List() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
var surov = from obj in list
where obj > 2 || obj % 2 == 1 || obj % 3 == 0 ||obj % 4 == 1
select obj;
foreach (var item in surov) {Console.WriteLine(item);}
Javob= 1,3,4,5,6,7,8,9,10
Задание #274
Вопрос:
Quyidagi surov natijasi nimaga teng:
List list = new List() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
var surov = from obj in list
where obj > 2 || obj % 2 == 1 || obj % 3 == 1 || obj % 4 == 0
select obj;
foreach (var item in surov) {Console.WriteLine(item);}
Javob= 1,3,4,5,6,7,8,9,10
Задание #275
Вопрос:
Quyidagi surov natijasi nimaga teng:
List list = new List() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
var surov = from obj in list
where obj > 2 && obj % 2 == 0 && obj % 4 == 0
select obj;
foreach (var item in surov) {Console.WriteLine(item);}
Javob= 4,8
Задание #276
Вопрос:
Quyidagi surov natijasi nimaga teng:
List list = new List() { 1, 2, -3, 14, 5, 16, 27, 18, 14, 10 };
var surov = from obj in list
where obj > 2 && obj % 3 == 0 && obj % 2 == 0
select obj;
foreach (var item in surov) {Console.WriteLine(item);}
Javob= 18
Задание #277
Вопрос:
Quyidagi surov natijasi nimaga teng:
List list = new List() { 1, 2, -3, 14, 5, 16, 27, 18, 14, 10 };
var surov = from obj in list
where obj > 2 || obj % 3 == 0 && obj % 2 == 0
select obj;
foreach (var item in surov) {Console.WriteLine(item);}
Javob= 14,5,16,27,18,14,10
Задание #278
Вопрос:
Quyidagi surov natijasi nimaga teng:
List list = new List() {10,12,-3,14,15,16,27,18,14,18};
var surov = from obj in list
where obj % 3 == 0 && obj % 2 == 0
select obj;
Console.Write(surov.Count());
Dostları ilə paylaş: |
|
|