9- dastur | for, aylanma. Python dasturlash tili

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ธ.ค. 2024

ความคิดเห็น • 255

  • @mikomix1542
    @mikomix1542 4 ปีที่แล้ว +5

    karra=9
    for son in range(1,11):
    natija=karra*son
    print("9x{}=".format(son),natija) men siz o'rgatishingizdan oldin shunday yozdim va bu ishladi. bu menimas sizning yutug'ingiz!!!
    = RESTART: C:/Users/Muzaffar/AppData/Local/Programs/Python/Python38/9_dars_karra.py
    9x1= 9
    9x2= 18
    9x3= 27
    9x4= 36
    9x5= 45
    9x6= 54
    9x7= 63
    9x8= 72
    9x9= 81
    9x10= 90
    >>> rahmat Botir Ustoz

    • @BotirZiyatov
      @BotirZiyatov  4 ปีที่แล้ว +1

      Рахмат Зўр 👍

  • @ilhomjonaxmatov6714
    @ilhomjonaxmatov6714 3 ปีที่แล้ว +1

    rahmat sizga ancha narsalarni o'rganyapmiz shuncha mehnat qilib tekinga dars chiqaryapsiz

  • @boburmustafo8868
    @boburmustafo8868 4 ปีที่แล้ว +20

    raxmat, ishlarizga omad "ustoz" 😀.iloji busa pythonda sayt yaratishni ham urgating

    • @foydalikanal4907
      @foydalikanal4907 4 ปีที่แล้ว +2

      Ha, juda yaxshi bo'lar edi..

    • @abrornurnazarov6223
      @abrornurnazarov6223 4 ปีที่แล้ว +2

      boshlangich=int(input("Boshlang'ich juft sonni kiriting:"))
      oxirgi=int(input("Oxirgi juft sonni kiriting:"))
      qatnashgan_sonlar_soni=(oxirgi-boshlangich+2)/2
      jami=(boshlangich+oxirgi)/2*qatnashgan_sonlar_soni
      print("n ta ketma-ket kelgan juft sonlar yigindisi:",jami)

    • @code_hor1zon
      @code_hor1zon 3 ปีที่แล้ว +2

      +

    • @АбдувохидАбдумаликов-х9в
      @АбдувохидАбдумаликов-х9в 2 ปีที่แล้ว +2

      +

  • @valourxzz
    @valourxzz 2 ปีที่แล้ว +15

    a = print("Juft Sonlarni ko'rsatuvchi dastur")
    for son in range(1, 19):
    juft_s = 2*son
    print(juft_s)

  • @doniyorbekabdivaxobov2903
    @doniyorbekabdivaxobov2903 4 ปีที่แล้ว +33

    n=int(input("ixtiyoriy butun sonni kiriting - "))
    t=0
    for son in range(2,n+1):
    k=son%2
    if k==0:
    t+=son
    else :
    continue
    print("yig'indi - ", t)

    • @BotirZiyatov
      @BotirZiyatov  4 ปีที่แล้ว +16

      Яхши натижа 👏

    • @geografiyakanalqdu3003
      @geografiyakanalqdu3003 ปีที่แล้ว +2

      xato chiqyapti

    • @ROKTERIK
      @ROKTERIK ปีที่แล้ว +1

      ​@@BotirZiyatov
      a = int(input('Son kirting'))
      s=0
      for i in range(2, a, 2):
      s+=i
      print(s)
      qisqa va xatosiz

    • @ROKTERIK
      @ROKTERIK ปีที่แล้ว

      xato

  • @azamatking7790
    @azamatking7790 3 ปีที่แล้ว +1

    Ajoyib video. Kanal zo'r. Charchamang

  • @muslimhusanov4905
    @muslimhusanov4905 3 ปีที่แล้ว +1

    Assalomu alaykum aka rahmat darslar zoʻr ekan rahmat omadizni bersin

  • @dilafruzsuvonova6341
    @dilafruzsuvonova6341 4 ปีที่แล้ว +1

    Darslar uchun katta raxmat ustoz

  • @abrorbektursunov1351
    @abrorbektursunov1351 4 ปีที่แล้ว +2

    Raxmat yaxshi videorolik boʻlibdi yaratgan barchamizdan rozi boʻlsin

  • @SukhrobEgamberdiyev
    @SukhrobEgamberdiyev 2 ปีที่แล้ว +1

    ishizga omad aka

  • @abduganievabdullokh
    @abduganievabdullokh ปีที่แล้ว +2

    n = int(input("Son kiriting: "))
    yigindi = 0
    for son in range(2, n+1):
    juft = son % 2
    if juft == 0:
    yigindi += son
    else:
    continue
    print("Yegindi: ", yigindi)

  • @innazarovjahongir6368
    @innazarovjahongir6368 4 ปีที่แล้ว +1

    Zor oka 👍👍👍👍👍👍 omad

  • @American_Tom.
    @American_Tom. 2 ปีที่แล้ว +1

    n = int(input('N ni kiriting >>> '))
    hisoblovchi = 0
    for son in range(0,n+1,2):
    hisoblovchi+=son
    print(hisoblovchi)

  • @uzbek-hz8jo
    @uzbek-hz8jo 3 ปีที่แล้ว +3

    while True:
    a= input("enter: ")
    b=0
    for x in range(int(a)):
    if x%2==0:
    b += x
    print(f"1 dan {a} gacha juft sonlar yigindisi {b} ga teng.")

    // dastur ishlash vaqtida 2 va undan ortiq amallarni bajarish mumkin

  • @davronabduvoxidov9998
    @davronabduvoxidov9998 4 ปีที่แล้ว +6

    for karra in range(1,11):
    print(karra, 'karra ')
    for son in range(1,11):
    natija=karra*son
    print("{}*{}={}".format(karra, son, natija))

  • @SukhrobEgamberdiyev
    @SukhrobEgamberdiyev 2 ปีที่แล้ว +3

    a = print("Juft Sonlarni ko'rsatuvchi dastur")
    for son in range(1, 19):
    juft_s = 2*son

  • @sarvarbek3220
    @sarvarbek3220 3 ปีที่แล้ว +4

    a = int(input('Son kiriting: '))
    son = 2
    for n in range(0, a, 2):
    natija = son+n
    print(f'Qale: {son} + {n} = {natija} ')

  • @pythonvajavadasturlashtili8295
    @pythonvajavadasturlashtili8295 3 ปีที่แล้ว +1

    Raxmat

  • @fozilovich
    @fozilovich 10 หลายเดือนก่อน

    son = int(input('son kiriting: '))
    yigindi = 0
    for raqam in range(0, son + 1, 2):
    yigindi += raqam
    print(yigindi)

  • @АлиДжораев-ш2ь
    @АлиДжораев-ш2ь 2 ปีที่แล้ว +1

    Oka raxmat

  • @saidcheek7702
    @saidcheek7702 4 ปีที่แล้ว +1

    n = input("Biror musbat son kiriting: ")
    natija = 0
    for son in range(int(n)):
    if son % 2 == 0:
    natija += son
    print("1 dan", n, "gacha bo'lgan juft sonlarning yig'indisi ",natija, "ga teng.")

  • @asadbeknuriddinov4632
    @asadbeknuriddinov4632 2 ปีที่แล้ว

    #karra jadvali tuzish
    for son in range(1,10):
    for karra in range(1,11):
    natija = son * karra
    print("{} x {} = {}".format(son,karra,natija))

  • @uzprikol4591
    @uzprikol4591 3 ปีที่แล้ว +1

    Ko'ringchi
    sonlar = 0
    n = int(input())
    for juft in range(0,n,2):
    natija = sonlar + juft
    print('{} + {} = {}'.format(sonlar,juft,natija))

  • @asilbekrahimov9776
    @asilbekrahimov9776 2 ปีที่แล้ว +1

    a=0
    n=int(input('n='))
    for x in range(1,n):
    if x%2==0:
    a+=x
    print(a)

  • @DLS-en3id
    @DLS-en3id 2 ปีที่แล้ว +3

    a=int(input())
    natija=0
    for son in range(0,a+1):
    if son%2==0:
    natija+=son
    print(son,' + ',end=' ')
    print(" = " ,natija)

  • @asadbeknuriddinov4632
    @asadbeknuriddinov4632 2 ปีที่แล้ว

    #topshiriq_9
    n = int(input("Sondi kiriting "))
    for son in range(2,n+1):
    k = son % 2
    if k == 0:
    print(son)
    😎🤓🤓🤓

  • @nodirwww
    @nodirwww 2 ปีที่แล้ว +1

    a=int(input("a="))
    y=0
    for b in range(1,a):
    if b%2==0:
    y+=b
    else:
    continue
    print("y=",y)

  • @humortv6917
    @humortv6917 2 ปีที่แล้ว +1

    son = 0
    for x in range(0 , 101):
    son = son + 2
    print(son)

  • @mavlonmirzayev8281
    @mavlonmirzayev8281 2 ปีที่แล้ว

    # topshiriq
    son=input("Biror butun son kiriting: ")
    son=int(son)
    summa=0
    for raqam in range(1,son):
    if raqam%2==0:
    summa+=raqam
    print("{} gacha bo`lgan juft sonlar yig`indisi {} ga teng".format(son, summa))

  • @abrornurnazarov6223
    @abrornurnazarov6223 4 ปีที่แล้ว +1

    boshlangich=int(input("Boshlang'ich juft sonni kiriting:"))
    oxirgi=int(input("Oxirgi juft sonni kiriting:"))
    qatnashgan_sonlar_soni=(oxirgi-boshlangich+2)/2
    jami=(boshlangich+oxirgi)/2*qatnashgan_sonlar_soni
    print("n ta ketma-ket kelgan juft sonlar yigindisi:",jami)

  • @firdavsjumayev8201
    @firdavsjumayev8201 2 ปีที่แล้ว

    n=int(input())
    yigindi=0
    for i in range(1,n+1):
    if i%2==0:
    yigindi=yigindi+i
    print(yigindi)

  • @mikomix1542
    @mikomix1542 4 ปีที่แล้ว +3

    n=int(input("Sonni kiriting: "))
    natija=0
    for son in range(0,n+2):
    if son%2==0:
    natija+=son
    print("2 dan",n," gacha bo`lgan juft sonlar yig`indisi",natija,"ga teng")

    • @BotirZiyatov
      @BotirZiyatov  4 ปีที่แล้ว +1

      Яхши натижа. факат 0 дан бошлаш шарт эмас бу шунчаки битта ортиқча қадам.

    • @mikomix1542
      @mikomix1542 4 ปีที่แล้ว

      @@BotirZiyatov рахмат устоз этибор учун!(устозни ёшини фарки йук экан)

    • @abdurahmonnasirov1012
      @abdurahmonnasirov1012 4 ปีที่แล้ว +1

      @@mikomix1542 Siz necha yoshdasiz?

    • @timurakramov3442
      @timurakramov3442 4 ปีที่แล้ว

      natija + = son
      Хато деяптику

  • @anu0369
    @anu0369 4 ปีที่แล้ว +3

    n = int(input('Son kiriting: '))
    s = 0
    for son in range(0, n + 1, 2):
    s += son
    print(s)

  • @javharbekyuldashev
    @javharbekyuldashev 4 ปีที่แล้ว +1

    n = int(input("n sonini kiriting: "))
    yegindi = 0
    for son in range(2,n+1,2):
    yegindi += son

  • @dilafruzsuvonova6341
    @dilafruzsuvonova6341 4 ปีที่แล้ว +2

    karra = input("Nechi karrani hosil qilmoqchisiz ")
    if karra.isdigit():
    karra = int(karra)
    for son in range(1,11):
    natija = karra*son
    print('{} * {} = {}'.format(karra,son,natija))
    else :
    print("Son kiritish lozi")

  • @BobomurodJabbarov-v6k
    @BobomurodJabbarov-v6k 2 หลายเดือนก่อน

    n = int(input("n Soniga qiymat bering: "))
    yigindi = 0
    for son in range(1, n):
    if son % 2 == 0:
    yigindi = yigindi + son
    print(yigindi)

  • @otabekhakimov7124
    @otabekhakimov7124 4 ปีที่แล้ว +4

    1 dan 95870467 gacha bo`lgan toq sonlar yig`indisi 2297786562764289 ga teng. Bu natijani chiqarish uchun kompyuter ozgina qiynaldi)))

  • @fmadaminovv
    @fmadaminovv 4 ปีที่แล้ว +1

    karra = 9
    for son in range(1, 11):
    print("9 x ", son, "=", son * karra)
    osonroq chiqarish karrani

  • @djangozerotoohero
    @djangozerotoohero 4 ปีที่แล้ว +1

    n = int(input('Son kiriting:'))
    sum = 0
    for i in range(1, n + 1):
    if i % 2 == 0:
    sum += i
    print('Juft sonlar yig`indisi', sum)

  • @shohjahonmirakov8520
    @shohjahonmirakov8520 4 ปีที่แล้ว +9

    n = int(input("Sonni kiriting: "))
    s=0
    for i in range(2, n+1, 2):
    s+=i
    print(s)

    • @BotirZiyatov
      @BotirZiyatov  4 ปีที่แล้ว +5

      Яхши натижа

    • @Meershakh
      @Meershakh 4 ปีที่แล้ว +3

      @@BotirZiyatov ustoz ma`lum bir songacha demaysizmiye ) man N gacha qanday bulikan deb uylabman
      1 soat urindim uziyam :)

    • @azamataxmatqulov5334
      @azamataxmatqulov5334 3 ปีที่แล้ว

      Man umuman tushunmadim lekin oka tushuntirb berin

    • @shohjahonmirakov8520
      @shohjahonmirakov8520 3 ปีที่แล้ว +1

      @@azamataxmatqulov5334 Assalomu alaykum! Birinchi navbatda siz n (ixtiyoriy son) ni foydalanuvchidan input orqali qabul qilib olishingiz kerak. Keyin for sikli orqali uni 2 (yaʼni birinchi juft son)dan to n gacha (juft boʻlishi uchun oraliq interval 2 bilan) aylantirasiz. Boshida s (raqamlar yigʻindisi) nolga teng boʻladi. Keyin for sikli avtomatik ravishda s ga hosil boʻlgan i (n gacha boʻlgan sonlar)ni birma-bir qoʻshib beradi. s+=i degani s = s + i, yaʼni har doim yangi hosil boʻlgan s ga i ni qoʻshib boradi. Oxirida esa hosil boʻlgan natija (s)ni print qilib qoʻyasiz!

  • @ElbekMamasharipov-v6m
    @ElbekMamasharipov-v6m ปีที่แล้ว

    n= int(input("Istalgan sonni kiriting"))
    for son in range(2,n+1,2):
    if n%2==0:
    natija=(n+2)/2*(n/2)
    print(natija)
    else:
    natija=(n-1+2)/2*((n-1)/2)
    print(natija)

  • @inyestamessi6995
    @inyestamessi6995 2 ปีที่แล้ว

    Zorrr

  • @demaromavrazeb3111
    @demaromavrazeb3111 3 ปีที่แล้ว +1

    Swm = 0
    n = int(input('Enter the number: '))
    for i in range(2,n,2):
    Swm+=i
    print(Swm)

  • @ruzibekov
    @ruzibekov 3 ปีที่แล้ว +1

    Vazifa:
    summa = 0
    for son in range(1, 11):
    if son % 2 == 0:
    summa += son
    print(summa)

  • @shhhh4814
    @shhhh4814 ปีที่แล้ว +1

    n=int(input('Sonni kiriting : '))
    x=0
    for son in range(1,n):
    if son % 2 ==0:
    x=x+son

    print(x)

  • @temurbekisoqov7821
    @temurbekisoqov7821 4 ปีที่แล้ว

    topshiriqni bajarishda qiynaldim shuning uchun 10-darsga qarab qildil:
    son=2
    n=int(input("biror sonni kiriting:"))
    while son

  • @akromubaydullayev1391
    @akromubaydullayev1391 4 ปีที่แล้ว +1

    n=int(input("Sonni kiriting: "))
    A=0
    for i in range(0,n,2):
    A+=i
    print(A)

  • @narikuznarikuz3629
    @narikuznarikuz3629 4 ปีที่แล้ว

    zo'r

  • @umidjonazizov4150
    @umidjonazizov4150 2 ปีที่แล้ว

    n = int(input('Ixtiyoriy juft son kiriting: '))
    s=0
    for x in range(2,n,2):
    s=s + x

    print(s)

  • @maxiblogger1772
    @maxiblogger1772 3 ปีที่แล้ว

    son = input("Sonni kiriting:")
    summa = 0
    kupaytma = 1
    if son.isdigit():
    for item in range(1,int(son)+1):
    summa += item
    print("1 dan",son ,"gacha bo'lgan sonlar yig'indisi =",summa)
    else:
    print("Faqat son kiriting ...")

  • @abrorbekmamaraimov4442
    @abrorbekmamaraimov4442 ปีที่แล้ว

    Assalomu alaykum
    n=int(input("Istalgan son kiriting: "))
    print(sum(range(2,n+1,2)))

  • @nuraziz_dev
    @nuraziz_dev 3 ปีที่แล้ว

    print("1 dan ngacha juft sonlar yig'indisi")
    n = int(input('n sonini kiriting '))
    if n % 2 == 0:
    print((2 + n) * n / 4)
    else:
    print((1 + n) * (n - 1) / 4)

  • @Notfound.404v
    @Notfound.404v 4 ปีที่แล้ว +1

    Assalomu alaykum Botir Ziyatov
    n = int(input('N sonini kiirting: '))
    natija = 0
    for son in range(2, n+1):
    if son % 2 == 0:
    natija += son
    print(natija)

  • @uzhammasibizda2503
    @uzhammasibizda2503 3 ปีที่แล้ว +1

    n = int(input("Nni kiriting: "))
    a = 0
    if n

  • @xomidjonsobirjonov4300
    @xomidjonsobirjonov4300 3 ปีที่แล้ว +1

    n = 61
    for son in range(1,n)
    son = 2×son
    print("1 dan n gacha bo'lgan son:",son)

  • @bahrom2101
    @bahrom2101 4 ปีที่แล้ว +2

    n = int(input("n="))
    for son in range(1,n):
    if son%2 == 0:
    print(son)

    • @thisisfirdavs_r
      @thisisfirdavs_r 3 ปีที่แล้ว +1

      oka if son%2 == 0: deganda shunda nimani hisoblayabsiz qandayligini tushunmadm

    • @bahrom2101
      @bahrom2101 3 ปีที่แล้ว

      @@thisisfirdavs_r agar sonni 2 ga bolsang qoldiq 0 bosa degan shart bu

    • @thisisfirdavs_r
      @thisisfirdavs_r 3 ปีที่แล้ว

      @@bahrom2101 rahmat aka

  • @Jamshidbek_129
    @Jamshidbek_129 ปีที่แล้ว

    b=0
    n=int(input("n="))
    for a in range(1,n):
    if a%2==0:
    b=a+b
    print(b)

  • @DoniyorMarupov
    @DoniyorMarupov ปีที่แล้ว

    #topshiriq 1 dan n gacha juft sonlar yigindisi
    son=int(input('n ning qiymatini kirgizing: '))
    yechim=son*son+son
    print('javob: ',yechim)

  • @doniyorbabajanov828
    @doniyorbabajanov828 3 ปีที่แล้ว +1

    n = int(input('n = '))
    sum = 0
    for i in range(2, n, 2):
    sum += i
    print('sum = {0}'.format(sum))

  • @murodturaev546
    @murodturaev546 4 ปีที่แล้ว

    n = int(input("sonni kiriting: "))
    k=0
    if n>0 :
    for son in range(1, n):
    if son%2==0 :
    k += son
    print(son, k)
    print("Kiritilgan songacha bolgan juft sonlarning yig`indisi {} ga teng".format(k))

  • @sarvarbek6959
    @sarvarbek6959 2 ปีที่แล้ว +1

    n=int(input('sonni kiriting:'))
    for son in range(1,n):
    if son%2==0:
    print(son)

  • @akfa8821
    @akfa8821 ปีที่แล้ว

    n=int(input('qiymat kiriting: '))
    yechim=0
    for yigindi in range(1, n+1):
    if yigindi % 2==0:
    yechim +=yigindi
    print('yigindi= ', yechim)

  • @kenjagolib
    @kenjagolib 3 ปีที่แล้ว +1

    son = int(input())
    x = 0
    for count in range(1,son+1):
    x+=count
    count+=1
    print(x)

  • @boqichigatoy1471
    @boqichigatoy1471 4 ปีที่แล้ว

    for karra1 in range(1,10):
    for son1 in range(1,11):
    natija1 = karra1 * son1
    print("{} * {} = {} ".format(karra1,son1,natija1))
    print("-------------------")

  • @javohirjumanazarov8508
    @javohirjumanazarov8508 3 ปีที่แล้ว

    b = 0
    a = int(input('Son kiriting: '))
    for son in range(1, a):
    if(son % 2 == 0):
    b = b + son
    print(b)

  • @ulugbektugalov2034
    @ulugbektugalov2034 4 ปีที่แล้ว +1

    Agar N, M natural sonlar bo'lasa , raqmlarining yig'indisi M ga teng bo'lgan N dan kichik natural sonlarni natural sonlarni aniqlaovchi dastur tuzing.

  • @shaxzodbek4328
    @shaxzodbek4328 2 ปีที่แล้ว

    son = range(2,100,2)
    print(sum(son))

  • @sardorsafarov4503
    @sardorsafarov4503 4 ปีที่แล้ว +1

    # 1dan n gacha bo'lgan butun sonlar yig'indisini hisoblaymiz
    n=int(input("biror musbat butun son kiriting:"))
    if n%2==0:
    sum=0
    for son in range(2,n+1):
    if son%2==0:
    sum+=son
    elif n%2==1:
    sum=0
    for son in range(2,n):
    if son%2==0:
    sum+=son
    else:
    print("biror musbat son kiriting:")
    print(sum)

  • @avengerwolf571
    @avengerwolf571 4 ปีที่แล้ว

    n=int(input('n ning qiymatini kiriting: '))
    yigindi=0
    for son in range(1,n):
    if son%2==0:
    yigindi+=son
    print(yigindi)

  • @sodiqsoliyev3254
    @sodiqsoliyev3254 3 ปีที่แล้ว

    n = int(input())
    s = 0
    for son in range(1,n+1):
    if son % 2 == 0 :
    s=s+son
    print(s)

  • @orzibekorziyev6378
    @orzibekorziyev6378 3 ปีที่แล้ว

    n = input("oraliqni tanlang: ")
    n.isdigit()
    n = int(n)
    a = 0
    for son in range(1, n+1):
    if son % 2 == 0:
    a = a + son
    print("tanlagan oralig'imizdagi juft sonlar yig'indisi = ", a)

  • @hojiakbarmahmudov7601
    @hojiakbarmahmudov7601 2 ปีที่แล้ว

    n=int(input("n="))
    sum=0
    for i in range (1,n+1):
    if i%2==0 :
    sum=sum+i
    print(f" 1 dan {n} gacha bo'lgan musbat sonlar yig'indisi {sum} ga teng!")

  • @HabibullohIsmoiljonov-ox9su
    @HabibullohIsmoiljonov-ox9su 4 หลายเดือนก่อน

    from random import randint
    n = randint(1,1000)
    son = 2
    qoshilma = 2
    while son

  • @buxdev576
    @buxdev576 4 ปีที่แล้ว +2

    a1 = 2
    d = 2
    an = int(input("So'nggi musbat sonni kiriting: "))
    n = int(an / 2)
    if an % 2 == 0:
    print("2 dan " + str(an) + " gacha bo'lgan juft sonlar yig'indisi: ", (2 + an) * an / 4)
    elif an % 2 == 1:
    print("2 dan " + str(an) + " gacha bo'lgan juft sonlar yig'indisi: ", (1 + an) * (an - 1) / 4)

    • @INOYATOFF
      @INOYATOFF 4 ปีที่แล้ว

      menimcha katta sonlar bilan ishlaganda shunday qilgan maqulroq 7 8 xonali sonlarda for sekin ishlashni boshlaydi

    • @buxdev576
      @buxdev576 4 ปีที่แล้ว

      @Atkham AkhmedjanovRahmat

  • @jonikjonik4193
    @jonikjonik4193 2 ปีที่แล้ว

    butun_son = int ( input ('butun sonni kiriting:'))
    qiymat_oluvchi = 0
    bolinma = butun_son % 2
    if bolinma == 0 :
    for son in range (2,butun_son):
    bolinma2 = son % 2
    if bolinma2 == 0:
    qiymat_oluvchi += son
    else :
    continue
    print ('2 dan {} gacha butun sonlar yigindisi {} ga teng '.format(butun_son,qiymat_oluvchi))
    else:
    print('iltimos butun son kititing')

  • @nilufar80
    @nilufar80 4 ปีที่แล้ว

    n=int(input("Biror n sonini kiriting: "))
    sum=0
    for m in range(1,n):
    if(m%2==0):
    sum+=m
    print(("1 dan {} gache bo'lgan sonlarning yig'indisi S={}").format(n,sum))

  • @husniddinraxmanov3796
    @husniddinraxmanov3796 2 ปีที่แล้ว

    #son = int(input('sonni kiriting: '))
    #summa = 0
    #if son > 0:
    # for son2 in range(0,son):
    # if son2 % 2 == 0:
    # summa += son2
    #print(summa)

  • @scatr1x
    @scatr1x 2 ปีที่แล้ว

    for x in range(0,100000,2):
    print(x)

  • @naughtypanda8824
    @naughtypanda8824 4 ปีที่แล้ว

    👍👏

  • @pantera1068
    @pantera1068 2 หลายเดือนก่อน

    n = int(input())
    print(n // 2 * (n // 2 + 1))

  • @jasurmamarakhimov9494
    @jasurmamarakhimov9494 3 ปีที่แล้ว +2

    for karra in range(1, 10):
    print("")
    print(' {} karra JADVALI'.format(karra))
    for kar in range(1, 11):
    kopaytma = karra * kar
    print(' {} x {} = {}'.format(karra, kar, kopaytma))

  • @anvarjonyusubjonov9562
    @anvarjonyusubjonov9562 4 ปีที่แล้ว

    n = input(' son kiriting: ')
    c = 0
    for a in range(int(n)):
    if a % 2 == 0 :
    c+=a
    print(c)

  • @nuriddinqobilov3577
    @nuriddinqobilov3577 2 ปีที่แล้ว +1

    son = int(input("1 dan nechgacha qo'shilishini hohlaysiz"))
    for son in range(1, son):
    teng = son + son
    print('{} + {} = {} '.format(son, son, teng))

  • @eldorbektorayev
    @eldorbektorayev 4 ปีที่แล้ว

    n = int(input("Ixtiyoriy butun son kiriting: "))
    natija = 0
    for son in range(n):
    if son % 2==0:
    natija += son
    print( "1 dan {} gacha bo'lgan juft sonlarning yig'indisi = {} ga teng".format(n, natija))

  • @sherzodshonazarov8814
    @sherzodshonazarov8814 4 ปีที่แล้ว

    n = int(input('Istalgan son kiriting - '))
    nateja = 0
    for son in range(2, n+1):
    if son%2== 0 and n>=2:
    nateja+= son
    print(nateja)

    • @sherzodshonazarov8814
      @sherzodshonazarov8814 4 ปีที่แล้ว

      n ga 8 kiritiganmda
      2
      6
      12
      20
      chiqyapti faqat ohiridagini uzini ciqarish mumknmi

  • @jorabekxolmurodov3525
    @jorabekxolmurodov3525 3 ปีที่แล้ว

    N=int(input('n ni kiriting:'))
    For n in range (2,n,2):
    Print(n)

  • @fazl1ddinoff
    @fazl1ddinoff 2 ปีที่แล้ว

    karra = input('Qaysi sonni karrasi kerak:')
    if karra == '2':
    for son in range (1, 11):
    natija = int(karra) * int(son)
    print("{} x {} = {}".format(karra, son, natija))
    elif karra == '3':
    for son in range(1, 11):
    natija = int(karra) * int(son)
    print("{} x {} = {}".format(karra, son, natija))
    elif karra == '4':
    for son in range(1, 11):
    natija = int(karra) * int(son)
    print("{} x {} = {}".format(karra, son, natija))
    elif karra == '5':
    for son in range(1, 11):
    natija = int(karra) * int(son)
    print("{} x {} = {}".format(karra, son, natija))
    elif karra == '6':
    for son in range(1, 11):
    natija = int(karra) * int(son)
    print("{} x {} = {}".format(karra, son, natija))
    elif karra == '7':
    for son in range(1, 11):
    natija = int(karra) * int(son)
    print("{} x {} = {}".format(karra, son, natija))
    elif karra == '8':
    for son in range(1, 11):
    natija = int(karra) * int(son)
    print("{} x {} = {}".format(karra, son, natija))
    elif karra == '9':
    for son in range(1, 11):
    natija = int(karra) * int(son)
    print("{} x {} = {}".format(karra, son, natija))
    else:
    print('2 dan 9 gacha son kiriting: ')
    Shu kodlarni ishlatib ko'rila.

  • @avazbeksobirov1013
    @avazbeksobirov1013 3 ปีที่แล้ว

    S=int(input('son kiriting'))
    for k in range(1,s):
    If k%2==0:
    Print(k)

    • @otush2446
      @otush2446 2 ปีที่แล้ว +2

      salom, menimcham sizda xato bor, siz satr tashamadingiz, hamdesa range(1,s) da "()" ichida katta S boladi, print kichik harflar biln yoziladi. if degan soz ham kichkina i bilan yoziladi

  • @MurodilDosmatov
    @MurodilDosmatov 4 ปีที่แล้ว

    n = input("N sonni kiriting=")
    m=int(n)
    sum=0
    for son in range(1,m):
    if son%2==0:
    sum=sum+son
    print("juft sonlar yig'indisi {}".format(sum))

  • @abdurashidbeksadullayev2623
    @abdurashidbeksadullayev2623 2 ปีที่แล้ว

    n = int (input ("Enter number :"))
    a = 0
    n+=1
    for i in range (n):
    if i%2 == 0 :
    a+=i
    print (a)

  • @zubairzubair8207
    @zubairzubair8207 2 ปีที่แล้ว +1

    a = int(input("Sonni Kiriting: "))
    t = 0
    for son in range(2,a):
    k=son%2
    if k==0:
    t+=son
    else:
    print("Yigindisi = ", t)

  • @Master-rk8nd
    @Master-rk8nd 4 ปีที่แล้ว +5

    n=int(input("Sonni kiriting: "))
    natija=0
    for son in range(0,n):
    if son%2==0:
    natija+=son
    print(natija)

    • @BotirZiyatov
      @BotirZiyatov  4 ปีที่แล้ว +1

      Яхши. факат 0 дан бошлаш шарт эмас сабаби ортиқча бир марта айланиш бўлади.

    • @mominjonovjavohirbek6882
      @mominjonovjavohirbek6882 4 ปีที่แล้ว

      Shu holatda javob qaytarayotganda nega har bir qadamni chiqarib ketyapti ..

    • @eagledev_tank
      @eagledev_tank 3 ปีที่แล้ว

      @@BotirZiyatov bunday kod yozib iwlatsak juda katta sonlarni hisoblashda komp qiynalib qolyapti
      aaaaaa sootvetstvenno agar bot yozadigan bolsak bunaqa holatlarda vaqt kop talab qiladi buni tushinmagan odam qotip qolyaptiku deydii?

  • @faxriddinmasharipov620
    @faxriddinmasharipov620 3 ปีที่แล้ว

    for son in range(1, 51):
    print(2*son)
    Shunda chiqadi

  • @murodalinarzullaev5955
    @murodalinarzullaev5955 4 ปีที่แล้ว

    a = int(input('a = '))
    n = 0
    for i in range(1, a):
    if i%2 == 0:
    n += i
    print(n)

  • @azizbek-jl6gt
    @azizbek-jl6gt ปีที่แล้ว

    n = int(input("Unli sonlar yozing : "))
    for son in range(1,n+1):
    if(son %2 == 0):
    print(son)

  • @akmalboboqulov8131
    @akmalboboqulov8131 4 ปีที่แล้ว

    n = int(input("Musbat butun son kiriting: n="))
    summ = 0
    for juft in range(1,n):
    if(juft % 2 == 0):
    summ += juft
    print("Juft sonlar yigindisi: summ=", summ)

  • @imaniman6658
    @imaniman6658 3 ปีที่แล้ว

    print("
    *******Topshiriq*******
    ")
    n = int(input("sonni kiriting: "))
    juft = 0
    toq = 0
    for son in range(1, n):
    if (son % 2) == 0:
    juft += son
    else:
    toq += son
    print("1 dan {} gacha juft sonlar yig'indisi: {}".format(n, juft))
    print("1 dan {} gacha toq sonlar yig'indisi: {}".format(n, toq))

  • @otush2446
    @otush2446 2 ปีที่แล้ว

    n = int(input())
    for n in range (1,n):
    x = n*2
    print(x, end='+')
    istalgan soningizni chiqarip beradi
    😁😁

  • @boqichigatoy1471
    @boqichigatoy1471 4 ปีที่แล้ว

    a = int(input("Son kiriting: "))
    c = 0
    for i in range(a):
    if i%2==0:
    c +=i
    print("------Yig'indisi-----")
    print(c)

  • @coderuz847
    @coderuz847 3 ปีที่แล้ว

    # 1 dan n songacha juft sonlar yig`indisi
    n = int(input('1 dan qaysi songacha juft sonlar olinsin: '))
    natija = 0
    for son in range(1, n):
    if son % 2 == 0:
    natija += son
    print('1 dan', n, 'gacha bo`lgan juft sonlar yig`indisi ', natija, 'ga teng')