8 Amaliy mashg’ulot 1-Masala


Download 14.48 Kb.
Sana13.12.2020
Hajmi14.48 Kb.

8 - Amaliy mashg’ulot

1-Masala

Satr berilgan. Agar bu satrda f harfi faqat bir marta bo'lsa, uning indeksini chop eting. Agar u ikki yoki undan ortiq marta uchrasa, uning birinchi va oxirgi marta paydo bo'lishining indeksini chop eting. Agar berilgan satrda f harfi bo’lmasa, hech narsani chiqarmang.



Kiruvchi ma’lumotlar

Chiquvchi ma’lumotlar

comfort

3

office

1 2

hello




fffffffffffffff

0 14

aaaaaaaaaaaaaaaaaaaaafaaaaaaaaaaaaaaaaaaaaaaaa

21

aaaaaaaaaaaaaaaaaaaaaaaaffaaaaaaaaaaaaaaaaaaaa

24 25

afafafafafafafa

1 13

2-Masala

Natural sonlardan iborat ketma-ketlik berilgan va 0 raqami bilan tugaydi, bu ketma-ketlikning qancha elementi o’zidan oldingi elementidan kattaligini aniqlang.



Kiruvchi ma’lumotlar

Chiquvchi ma’lumotlar

1

7

9



0

2

1

5

2



4

3

0



2

1

2

3



4

5

0



4

5

4

3



2

1

0



0

1

5

1



5

1

0



2

5

1

5



1

5

0



2

5

5

5



5

5

0



0

1

1

1



5

1

0



1

345354

0


0

1

465


0

1

4

1

0



0

1

2

3



0

2

1

2

3



4

1

0



3

Download 14.48 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2020
ma'muriyatiga murojaat qiling