Ushbu video guruhlash va funksiyalar haqida. Hali klass, obyekt, interfeys degan tushinchalarni o’tamiz. Lekin bularning bari o’zgaruchan va funksiya atrofida qurilgan. Ya’ni dasturchining eng asosiy instrumentlari bu o’zgaruchan va funksiyalar. Bularni qattiq o’zlashtirib olishlariz kerak.
Videoni ko’rish uchun ushbu tekstga bosing
Videoda yozilgan kod:
monthBase() { print 1; print 2; print 3; print 4; print 5; print 6; print 7; print 8; print 9; print 10; print 11; print 12; print 13; print 14; print 15; print 16; print 17; print 18; print 19; print 20; print 21; print 22; print 23; print 24; print 25; print 26; print 27; print 28; } monthShort() { print 29; print 30; } monthLong() { monthShort(); print 31; } print "Yanvar"; monthBase(); monthLong(); print "Fevral"; monthBase(); print "Mart"; monthBase(); monthLong(); print "Aprel"; monthBase(); monthShort(); print "May"; monthBase(); monthLong(); print "Iyun"; monthBase(); monthShort(); print "Iyul"; monthBase(); monthLong(); print "Avgust"; monthBase(); monthLong(); print "Sentyabr"; monthBase(); monthShort(); print "Oktyabr"; monthBase(); monthLong(); print "Noyabr"; monthBase(); monthShort(); print "Dekabr"; monthBase(); monthLong();
Umumiy dasturlash teoriyasi 👉 https://www.youtube.com/playlist?list=PLcvajZ_CZX8RygFD05lSHujpk2gLcBQaO
YouTube 👉 https://www.youtube.com/c/kadirovDev
Telegram 👉 https://t.me/kadirovDev
Instagram 👉 https://www.instagram.com/kadirovDev
VKontakte 👉 https://vk.com/kadirovDev
65+
Ustoz 3 take funksiya qilsak bõlmaydimi?
Misol uchun-Month all()ni yaratib unga 1 Dan 31 gacha.Month ()1dan 30gacha .Month short ()fevralga ishlatsek qulay masmi?bu albatta mani shaxsiy fikrim.
Misol uchun
Print “Yanvar”;
Month all()
Print “Fevral”;
Month short()
Print “Mart “;
Month all()
Print “Aprel”;
Month ()
Va hokazo javobizi kutaman albatta!!! Javob uchun email Zokirvoy688@mail.ru. va albatta oldindan raxmat!