Special Programs in C − Check If The Number Is Perfect Number

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024
  • C Programming & Data Structures: Special C Programs − Check If The Number Is Perfect Number or Not.
    Topics discussed:
    1) Perfect Number
    2) C program to check if the number is a perfect number
    C Programming Lectures: goo.gl/7Eh2SS
    Follow Neso Academy on Instagram: @nesoacademy(bit.ly/2XP63OE)
    Follow me on Instagram: @jaspreetedu(bit.ly/2YX26E5)
    Contribute: www.nesoacademy...
    Memberships: bit.ly/2U7YSPI
    Books: www.nesoacademy...
    Website ► www.nesoacademy...
    Forum ► forum.nesoacade...
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    #CProgrammingByNeso #CProgramming #PerfectNumberProgram

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

  • @daverussell4052
    @daverussell4052 3 ปีที่แล้ว +8

    for(int i = 1; i < number; i++){
    if(number % i == 0){
    sum += i;
    }
    }
    acctualy you dont need rem variable

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

    You are the best I am in love uth programming because of you

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

    Thanks a lot... Yeah now i am very confident in programming, Because of you..

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

    Sir please upload all topics which you told us in starting to teach

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

    Sir excellent videos and please upload recursion and pointers topic.

  • @मीआदिवासी-ढ6त
    @मीआदिवासी-ढ6त 6 ปีที่แล้ว +2

    Thank you for help......!

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

    Love your explanation sir
    👍👍

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

    Neso is best, ❤

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

    Sir! how can we expertise like you.....

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

    in for loop, i

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

    Thenxx 💗💖

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

    Neso is best🙂🙃

  • @Sonuking0143
    @Sonuking0143 11 หลายเดือนก่อน

    Thank you 🙏 guru ji love you 😘😘😘😘😘😘😘😘😘🥰😘🥰😘🥰

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

    Awesome video

  • @learningislife2934
    @learningislife2934 5 ปีที่แล้ว

    Nice sir

  • @keshavtripathi6881
    @keshavtripathi6881 6 หลายเดือนก่อน +1

    please enter the number zero

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

    Hello help me please sar

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

    without using rem variable ,we can directly check if(number%i==0){ sum=sum+i;}

    • @k.k.harjeeth5422
      @k.k.harjeeth5422 2 ปีที่แล้ว

      yeah

    • @biswanathmodak110
      @biswanathmodak110 9 หลายเดือนก่อน

      Using more variables helps you to make the program understand.

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

    Can you teach us "python programming"?

  • @AnkitSingh-xr7lu
    @AnkitSingh-xr7lu 4 ปีที่แล้ว +3

    thank u so much sir your teaching is really awesome...

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

    A suggestion:
    Since we are not taking the number itself as a divisor we can run the iteration to number/2 {int(number/2)+1, to avoid the decimal result in case of odd numbers} to reduce execution time for larger numbers.

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

      exactly

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

      Bro
      Could you explain this by giving some example

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

      @@mdf1259 there cant be any divisor after n/2

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

      @@mdf1259 eg 4500 do not have any divisors after 2250

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

      @@nirantarkulkarni9170
      Oh ok
      What is his logic?

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

    2:00 "R.E.M. - Losing my religion" 🎶

  • @ayushiyadav1
    @ayushiyadav1 7 หลายเดือนก่อน

    tysm NESO!! Lots of lovee on Valentines 💌💌🙏🙏

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

    Amazing Explanation sir and very attractive presentation 😊

  • @SoeHtetAung-y3w
    @SoeHtetAung-y3w 2 หลายเดือนก่อน

    subtitle?

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

    Thank u

  • @Jeremyak
    @Jeremyak 3 หลายเดือนก่อน

    I was able to program a solution to the problem based on the definition of a perfect number alone, that's some progress. This is a very good series of lessons, much better than most of the tutorials on offer. Many thanks for the high quality content!

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

    Please upload some videos for 'Design and Analysis of Algorithms(DAA)'.

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

    Wow this a great video, but sir why shouldn't we divide the number by 2 to cut down the iteration time. Thus for(i=1, i

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

    Sir your have not included the condition when number=0,I think we have to add if(number>0) above while Loop sir

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

    Sir some numbers not satisfy like 4, 12 etc... What can I do then ? Any other logic?

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

    If we enter 10.5 as input. It says 10 is not a perfect number. Why?

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

    Thanks a lot ❤

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

    Thank u

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

    28 is not a perfect number

  • @abishekbabu9247
    @abishekbabu9247 5 ปีที่แล้ว

    Sir! Will These type of Questions were asked in Gate?