C Program to Check a Number is Armstrong or Not | Learn Coding

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • C Language Full Course for Beginners (Hindi) ....!
    👇👇👇
    • C Programming Full Cou...
    Don't forget to tag our Channel...!
    #armstrongnumber
    #clanguage
    #cprogramming
    #LearnCoding
    #armstrongnumberprogram
    #programming
    #coding
    #cfullcourse
    #cprogram
    #cprograms
    #cbasicprogram
    || Content ||
    writer ✍: ankush
    voice 🔊: akhilesh
    Thank You 👌👌👌

Komentáře • 252

  • @DhruvGadara
    @DhruvGadara Před 3 měsíci +4

    aapki technic se muje sab samaj aa jata he 🙏🙏👍👍❤❤ THANK YOU Learn Coding

  • @samratmandal2523
    @samratmandal2523 Před 2 lety +40

    Great explanation ever!
    Respect...
    Thank you so much sir 💝

  • @adnanbinalam2539
    @adnanbinalam2539 Před 2 lety +11

    Thank you so much sir for your awesome and simplicity example. when there are some question which I can't solve or hard to understand I just come to you. Now I am a regular viewer and fan of you.

  • @janhvinarayan1633
    @janhvinarayan1633 Před 8 měsíci +4

    sir aap pehle hi itne ache se samjha dete hain ki dry run ki zarurat hi nahi padti hain
    par sir aapne bus 3 digit armstrong no.s ke liye bataya hain, agar aap general program batate any no. of digit no.s ke liye too aur acha hota bhale hi vo zyada lamba aur complex ho jata

  • @nilanjandey9604
    @nilanjandey9604 Před rokem +4

    Sir, thank you so much. 🙏
    your explanation is really awesome. 🙏🙏

  • @surtasingh6480
    @surtasingh6480 Před rokem +1

    This is very helpful....
    Mujhe ye Armstrong name sun ne m hi bdaa hard lagta thaa.....
    Lekin aapke itne acche se samjhaane pr ek baar m hii samjh m aa gya wo bhii bina Dry run k.....
    Thank you ❤so much.... Aap bahut hi acche se samjhaate h..

  • @vaibhavgupta777
    @vaibhavgupta777 Před 4 měsíci +1

    Thank You Sir So So Much🙏🙏🙏🙏

  • @user-re2jq3sr4o
    @user-re2jq3sr4o Před 5 měsíci +1

    very very nice explanation i am ur regular viewer thanks for sharing that kind of videos to understand our concepts 🤩😇👌

  • @sumantsaieskaspa
    @sumantsaieskaspa Před měsícem

    bhaiya dhanyavad mai aap video half bhi nahi dheka lekin pura samajh gaya logic mujhey jaha doubt tha na exactlyvo pointvery clear tha aur aap code bahuta acha say smajha rahey hai. Maza aa gaya and akpo subscribe karna banta hai and once again dhanyavad

  • @drniketu
    @drniketu Před rokem +1

    Mauj kar di sir. Aapne jitna pressure pen pe dala hai likhne mai, utna hi pressure hamare dimag se kum ho gaya :-)

  • @drgamer84
    @drgamer84 Před 3 lety +2

    Bahut acha video hai

  • @pawansahu5175
    @pawansahu5175 Před 11 měsíci +1

    Very good video for this question

  • @bhagyashri5114
    @bhagyashri5114 Před rokem +1

    Easy to understand concept... Thank you sir..

  • @digvijaychaudhari2892
    @digvijaychaudhari2892 Před rokem +2

    Best Explanation
    Thank you Sir🙏🙏👍

  • @vivekdighe4117
    @vivekdighe4117 Před 11 měsíci +2

    Excellent explanation 👏😀❤

  • @RoyalKingharshpandit
    @RoyalKingharshpandit Před rokem +1

    Mst sir g good 👍 u

  • @sandiponghanty9925
    @sandiponghanty9925 Před 7 měsíci +2

    4:44 bro got connected with another planet

  • @ConceptOfProgramming
    @ConceptOfProgramming Před 3 měsíci

    👍👍

  • @madhurithoke3480
    @madhurithoke3480 Před 2 lety +3

    Thank u sir🙏 and ur videos always help me a lot and ur teaching is commendable sir😊

  • @karunshrestha5517
    @karunshrestha5517 Před 8 měsíci +1

    #include
    #include
    int main() {
    // Declare variables to store the number and its digit count
    int num, originalNum, remainder, result = 0, n = 0;
    // Read input from the user
    printf("Enter an integer: ");
    scanf("%d", &num);
    // Save the original number for later comparison
    originalNum = num;
    // Count the number of digits
    while (originalNum != 0) {
    originalNum /= 10;
    ++n;
    }
    // Reset originalNum to the input number
    originalNum = num;
    // Check if it is an Armstrong number
    while (originalNum != 0) {
    remainder = originalNum % 10;
    result += pow(remainder, n);
    originalNum /= 10;
    }
    if (result == num)
    printf("%d is an Armstrong number.
    ", num);
    else
    printf("%d is not an Armstrong number.
    ", num);
    return 0;
    }
    Is this right?

    • @LearnCodingOfficial
      @LearnCodingOfficial  Před 8 měsíci +1

      Yes

    • @Sanakanwal-gi8zq
      @Sanakanwal-gi8zq Před 4 měsíci

      It's a bit difficult but more general 👍 but why didn't you use the condition like the original number >0. if you are using the original number !=0 it can also include negative numbers lesser than zero.

  • @VinayYadav-vc4zl
    @VinayYadav-vc4zl Před 2 lety +10

    what about if any number having more than 3 digit, Then how can program multiply them?
    for example if user input 1634 then all digit need to multiply 4 times of itself.

    • @raghasreekosigi4443
      @raghasreekosigi4443 Před rokem

      armstrong number means sum of cubes of digits in a number...it doesnt matter how many digits..if the answer is same as the number.Then it is a armstrong number

    • @bhuvxn
      @bhuvxn Před rokem

      Use another while loop

  • @yashmakwana956
    @yashmakwana956 Před 2 lety +1

    Your methad is so good 😊😊

  • @user-se6cg9fr4h
    @user-se6cg9fr4h Před 8 měsíci +1

    Yes it work for four digit number try it with 1634 and do (r*r*r*r)+arm

  • @arpan9585
    @arpan9585 Před 11 měsíci +1

    best explanation thank you sir

  • @delllaptop2605
    @delllaptop2605 Před 2 lety +5

    Very big congratulations for 1M and salute to your efforts... 🔥🎉🎊

  • @shaiktanjuna8626
    @shaiktanjuna8626 Před 2 lety +3

    Great explanation thank you 👏

  • @hpk.3617
    @hpk.3617 Před rokem +1

    thanks sir mujhe bahut der se sahi video nahi mil arhi thi

  • @MondalSuvankar
    @MondalSuvankar Před 9 měsíci +1

    The best c education hub in CZcams
    What a explain sir❤
    Mind blowing
    Superb sir I see your video for my doubt only your video clear my doubt❤❤❤❤
    Sir one more thing sir give some video for BCA course

  • @gaziogamer
    @gaziogamer Před rokem +1

    very nice explanation sir

  • @viane123456
    @viane123456 Před 3 lety +2

    Very good program thank you

    • @xyzcontent5599
      @xyzcontent5599 Před 2 lety

      czcams.com/channels/jEOyfxpWMY7tJO9D2rt5JQ.html

  • @Alwayspositive-pf1yf
    @Alwayspositive-pf1yf Před 5 měsíci

    Thank you Bhai nice explanation

  • @ankushdangi3154
    @ankushdangi3154 Před 2 lety

    Ese hi vidio bnate rho

  • @Alphx_pvt
    @Alphx_pvt Před rokem +1

    Sir you're awesome 🎉

  • @savagestuff4334
    @savagestuff4334 Před rokem +1

    King of coding♥️♥️♥️

  • @lipakshishaw9471
    @lipakshishaw9471 Před rokem +1

    Sir your videos are very helpful....ur explanations are awesome....

  • @arshshaikh9442
    @arshshaikh9442 Před 2 lety +3

    Thank you so much sir your videos helps us alot 💓

    • @xyzcontent5599
      @xyzcontent5599 Před 2 lety +1

      czcams.com/channels/jEOyfxpWMY7tJO9D2rt5JQ.html

  • @prernakumari1431
    @prernakumari1431 Před 2 lety +1

    Thank you sir
    It was helpful

  • @NehaSharma_nsds
    @NehaSharma_nsds Před 9 měsíci +1

    Great explanation sir 😊😊💜

  • @ig.devil_21
    @ig.devil_21 Před 2 lety +3

    Simplest explanation sir 🔥🔥🔥

  • @animaqaar
    @animaqaar Před rokem

    aapka explanation bhut achha hota h ❤❤❤

  • @archnajekku8255
    @archnajekku8255 Před 2 lety +2

    Good explanation 👍
    Thank you so much 🤗

  • @Akashkumar-vu9bu
    @Akashkumar-vu9bu Před rokem

    Thnks sir
    Isska program mere sar ke uper se jaa rha tha par abb clear hai

  • @arshuarshad1551
    @arshuarshad1551 Před 9 měsíci

    your dry run is fantastic sir

  • @famousjedits_143
    @famousjedits_143 Před 8 měsíci

    Really very helpful

  • @thathaseyyalubogadi5864
    @thathaseyyalubogadi5864 Před 9 měsíci

    Thank you sir 😊😀😃🙂😉

  • @badboygameing..1400
    @badboygameing..1400 Před 10 měsíci

    Thank you sir ❤
    Nice 👍,

  • @30vijaytyagi9
    @30vijaytyagi9 Před 10 měsíci +1

    Thank You Sir

  • @26_rajashrikhetmalis34
    @26_rajashrikhetmalis34 Před 3 lety +1

    Thanks sir

  • @ankitmji786
    @ankitmji786 Před 3 měsíci

    Thank you so much Sir 😊

  • @radhikaparaja1369
    @radhikaparaja1369 Před rokem

    Very well explained sir but how will you very much talent 😮😮😮

  • @Ayush_shukla0143
    @Ayush_shukla0143 Před 8 měsíci

    Bhott sahiii guruuu Maja aa gya

  • @fax_tech
    @fax_tech Před rokem +1

    Very useful thanks 😊

  • @ShubhamKumar-qo6qs
    @ShubhamKumar-qo6qs Před 9 měsíci

    well explained sir
    Thank you

  • @Gattiks_edit_OFFICIAL
    @Gattiks_edit_OFFICIAL Před 2 měsíci

    🙌

  • @RoyalKingharshpandit
    @RoyalKingharshpandit Před rokem +1

    Thanku sir g

  • @kaifshaikh6335
    @kaifshaikh6335 Před rokem

    GREAT EXPLANATION sir In dry run

  • @Abhay0498
    @Abhay0498 Před rokem +1

    Jai ho

  • @yashmakwana956
    @yashmakwana956 Před 2 lety +1

    Super

  • @ashishmemariya1204
    @ashishmemariya1204 Před 3 měsíci +1

    There is small mistake in your concept....An Armstrong number is a number that is equal to the sum of its digits each raised to the power of the number of digits. In other words, if you take each digit in the number, raise it to the power of the total count of digits in the number, and then sum them all together, the result is the original number itself.... and you said about the cubes which is wrong.. Hope it will helpfull...

  • @niteshnayak940
    @niteshnayak940 Před 11 měsíci

    Great❤❤❤

  • @PrasantaDas-cj4xe
    @PrasantaDas-cj4xe Před 9 měsíci

    Thank you so much 🙏🙏

  • @ankushdangi3154
    @ankushdangi3154 Před 2 lety

    Super sir ji

  • @bhupendra382
    @bhupendra382 Před rokem

    Bhai you taught excellent

  • @shubhamkumarjha9192
    @shubhamkumarjha9192 Před 2 lety

    Superb..👍❤️

  • @abhitapaniya9276
    @abhitapaniya9276 Před rokem

    thank you sir you're great

  • @sambitbhattacharya2413
    @sambitbhattacharya2413 Před 2 lety +92

    sir but this is only for a 3 digit number what if user input a four digit number . then it would be 1^4 + 2^4 +3^4+4^4 just like that .. this program is only applicable for 3 digit numbers .... it cannot check 4 digit number

    • @RamDas-lq4ld
      @RamDas-lq4ld Před 2 lety +5

      yes i also face this problem

    • @nckcyc191
      @nckcyc191 Před 2 lety +3

      No this is not

    • @nckcyc191
      @nckcyc191 Před 2 lety +2

      Only

    • @nckcyc191
      @nckcyc191 Před 2 lety +3

      Digits se matlab nahi hai

    • @nckcyc191
      @nckcyc191 Před 2 lety +6

      Arm no. is a no whose sum of cube of no. is equal to the same no

  • @abhinavsingh9315
    @abhinavsingh9315 Před rokem

    nice explanation

  • @user-meeSS
    @user-meeSS Před 2 lety

    Awesome explanation

  • @talibhussain7050
    @talibhussain7050 Před 9 měsíci

    thankuu soo much

  • @theproplus7061
    @theproplus7061 Před 3 lety

    Sir apke chalte mai programming sikha mujhe pahle nahi samaj aata tha thanku so much sir...Sir interview ka question ka video banaiye sir plzz

  • @sheetalsharma1675
    @sheetalsharma1675 Před 2 lety

    bhot acha padthe ho aap..

  • @sanjibpaudel6921
    @sanjibpaudel6921 Před rokem +5

    only applicable for 3 digit numbers

  • @jatinjasrotia31
    @jatinjasrotia31 Před rokem

    thanks buddy and well explained keep bringing these vedios.

  • @upashna397
    @upashna397 Před rokem

    Thankyou

  • @RohitKumar-zp1ru
    @RohitKumar-zp1ru Před 3 lety +4

    Sar computer graphic ki video bhi send kar dijiye important

  • @mahekjoshi9959
    @mahekjoshi9959 Před 4 měsíci

    dry run badhiya kiya

  • @swapnilchate2412
    @swapnilchate2412 Před 2 lety

    Great Explain 👍

  • @gauravthakur6634
    @gauravthakur6634 Před rokem

    ❤❤❤

  • @crAzy.346
    @crAzy.346 Před 4 měsíci

    it is not the general solution for all armstrong number as when the input is 1634,it shows not armstrong number....it is obvious because in this code we are doing the cube of the digits...but in the original logic of armstrong number we are multiplying n times where n is the length of the number...in case of 153 n will be 3 and in case of 1634 n will be 4...so 1^4+6^4+3^4+4^4=1634......

  • @romanbirla5410
    @romanbirla5410 Před 2 lety

    Great Sir...💯❤️

  • @pradeeppradeepkanaujiya8990

    Great explain sir 😊😁😁😁

  • @arbaazahmed1603
    @arbaazahmed1603 Před rokem

    nice explain sir👍

  • @dhanuu1062
    @dhanuu1062 Před 10 měsíci

    Thank you sir🙏

  • @gulabchandgupta5486
    @gulabchandgupta5486 Před 3 lety

    Nice ❤️❤️ concept and explained 🙏🙏

    • @xyzcontent5599
      @xyzcontent5599 Před 2 lety

      czcams.com/channels/jEOyfxpWMY7tJO9D2rt5JQ.html

  • @status_beatz_1
    @status_beatz_1 Před rokem

    Next level explanation 😁😁

  • @pariagarwal1284
    @pariagarwal1284 Před rokem

    Nice explanation 😀

  • @tanupriya2571
    @tanupriya2571 Před 2 lety

    Wah sir

  • @alameen6329
    @alameen6329 Před rokem

    Very helpful , thank u❤

  • @beastboy7327
    @beastboy7327 Před 2 lety

    Thanks 👍

  • @miraclebeats7542
    @miraclebeats7542 Před 2 lety

    Thanks sir 💯🥳

  • @carbon3630
    @carbon3630 Před rokem

    Thank u sir

  • @surendradahare704
    @surendradahare704 Před 2 lety

    This is too good 😊😊😊

  • @wonderchemistry76
    @wonderchemistry76 Před rokem +2

    Programming galat hai
    Agar 4 ya 2 ya kitne bhi digit ka number ho to kya karenge

  • @kartickchandramanna267

    Good explanation.
    Thanks 🙏

    • @xyzcontent5599
      @xyzcontent5599 Před 2 lety

      czcams.com/channels/jEOyfxpWMY7tJO9D2rt5JQ.html

  • @pranav0585
    @pranav0585 Před 2 lety

    Op bhai

  • @rishavsingh1849
    @rishavsingh1849 Před 2 lety

    Thanks

  • @satisfy146
    @satisfy146 Před 2 lety

    Thanku sir

  • @swagboltey102
    @swagboltey102 Před rokem +1

    Why divide number by 10 and get remainder

  • @shivamkadve9938
    @shivamkadve9938 Před rokem

    Thank you sir 😌

  • @digontosaha1406
    @digontosaha1406 Před 9 měsíci

    Njce