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

Поделиться
HTML-код
  • Опубликовано: 12 сен 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 👌👌👌

Комментарии • 255

  • @samratmandal2523
    @samratmandal2523 2 года назад +40

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

  • @DhruvGadara
    @DhruvGadara 4 месяца назад +4

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

  • @janhvinarayan1633
    @janhvinarayan1633 8 месяцев назад +5

    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

  • @adnanbinalam2539
    @adnanbinalam2539 2 года назад +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.

  • @surtasingh6480
    @surtasingh6480 Год назад +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..

  • @nilanjandey9604
    @nilanjandey9604 Год назад +4

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

  • @MiniMarvelsStudio-o9s
    @MiniMarvelsStudio-o9s 2 года назад +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 Год назад

      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 Год назад

      Use another while loop

  • @user-re2jq3sr4o
    @user-re2jq3sr4o 5 месяцев назад +1

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

  • @drniketu
    @drniketu Год назад +1

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

  • @madhurithoke3480
    @madhurithoke3480 2 года назад +3

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

  • @delllaptop2605
    @delllaptop2605 2 года назад +5

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

  • @MondalSuvankar
    @MondalSuvankar 10 месяцев назад +1

    The best c education hub in RUclips
    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

  • @user222-i7q
    @user222-i7q 9 месяцев назад +1

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

  • @sandiponghanty9925
    @sandiponghanty9925 8 месяцев назад +2

    4:44 bro got connected with another planet

  • @sumantsaieskaspa
    @sumantsaieskaspa Месяц назад

    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

  • @digvijaychaudhari2892
    @digvijaychaudhari2892 Год назад +2

    Best Explanation
    Thank you Sir🙏🙏👍

  • @lipakshishaw9471
    @lipakshishaw9471 Год назад +1

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

  • @vivekdighe4117
    @vivekdighe4117 Год назад +2

    Excellent explanation 👏😀❤

  • @bhagyashri5114
    @bhagyashri5114 Год назад +1

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

  • @drgamer84
    @drgamer84 3 года назад +2

    Bahut acha video hai

  • @shaiktanjuna8626
    @shaiktanjuna8626 2 года назад +3

    Great explanation thank you 👏

  • @vaibhavgupta777
    @vaibhavgupta777 4 месяца назад +1

    Thank You Sir So So Much🙏🙏🙏🙏

  • @arshshaikh9442
    @arshshaikh9442 2 года назад +3

    Thank you so much sir your videos helps us alot 💓

    • @xyzcontent5599
      @xyzcontent5599 2 года назад +1

      ruclips.net/channel/UCjEOyfxpWMY7tJO9D2rt5JQ

  • @karunshrestha5517
    @karunshrestha5517 8 месяцев назад +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  8 месяцев назад +1

      Yes

    • @Sanakanwal-gi8zq
      @Sanakanwal-gi8zq 5 месяцев назад

      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.

  • @archnajekku8255
    @archnajekku8255 2 года назад +2

    Good explanation 👍
    Thank you so much 🤗

  • @pawansahu5175
    @pawansahu5175 Год назад +1

    Very good video for this question

  • @Ayush_shukla0143
    @Ayush_shukla0143 9 месяцев назад

    Bhott sahiii guruuu Maja aa gya

  • @NehaSharma_nsds
    @NehaSharma_nsds 10 месяцев назад +1

    Great explanation sir 😊😊💜

  • @savagestuff4334
    @savagestuff4334 Год назад +1

    King of coding♥️♥️♥️

  • @yashmakwana956
    @yashmakwana956 2 года назад +1

    Your methad is so good 😊😊

  • @ig.devil_21
    @ig.devil_21 2 года назад +3

    Simplest explanation sir 🔥🔥🔥

  • @hpk.3617
    @hpk.3617 Год назад +1

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

  • @jatinjasrotia31
    @jatinjasrotia31 Год назад

    thanks buddy and well explained keep bringing these vedios.

  • @prernakumari1431
    @prernakumari1431 2 года назад +1

    Thank you sir
    It was helpful

  • @sambitbhattacharya2413
    @sambitbhattacharya2413 2 года назад +93

    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 2 года назад +5

      yes i also face this problem

    • @nckcyc191
      @nckcyc191 2 года назад +3

      No this is not

    • @nckcyc191
      @nckcyc191 2 года назад +2

      Only

    • @nckcyc191
      @nckcyc191 2 года назад +3

      Digits se matlab nahi hai

    • @nckcyc191
      @nckcyc191 2 года назад +6

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

  • @arpan9585
    @arpan9585 11 месяцев назад +1

    best explanation thank you sir

  • @wonderchemistry76
    @wonderchemistry76 Год назад +3

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

  • @Alwayspositive-pf1yf
    @Alwayspositive-pf1yf 5 месяцев назад

    Thank you Bhai nice explanation

  • @Akashkumar-vu9bu
    @Akashkumar-vu9bu Год назад

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

  • @radhikaparaja1369
    @radhikaparaja1369 Год назад

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

  • @RoyalKingharshpandit
    @RoyalKingharshpandit Год назад +1

    Mst sir g good 👍 u

  • @Alphx_pvt
    @Alphx_pvt Год назад +1

    Sir you're awesome 🎉

  • @RohitKumar-zp1ru
    @RohitKumar-zp1ru 3 года назад +4

    Sar computer graphic ki video bhi send kar dijiye important

  • @animaqaar
    @animaqaar Год назад

    aapka explanation bhut achha hota h ❤❤❤

  • @ashishmemariya1204
    @ashishmemariya1204 4 месяца назад +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...

  • @viane123456
    @viane123456 3 года назад +2

    Very good program thank you

    • @xyzcontent5599
      @xyzcontent5599 2 года назад

      ruclips.net/channel/UCjEOyfxpWMY7tJO9D2rt5JQ

  • @ankushdangi3154
    @ankushdangi3154 2 года назад

    Ese hi vidio bnate rho

  • @gaziogamer
    @gaziogamer Год назад +1

    very nice explanation sir

  • @ConceptOfProgramming
    @ConceptOfProgramming 4 месяца назад

    👍👍

  • @badboygameing..1400
    @badboygameing..1400 11 месяцев назад

    Thank you sir ❤
    Nice 👍,

  • @theproplus7061
    @theproplus7061 3 года назад

    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

  • @fax_tech
    @fax_tech Год назад +1

    Very useful thanks 😊

  • @Abhay0498
    @Abhay0498 Год назад +1

    Jai ho

  • @ankitmji786
    @ankitmji786 4 месяца назад

    Thank you so much Sir 😊

  • @crAzy.346
    @crAzy.346 5 месяцев назад

    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......

  • @ShubhamKumar-qo6qs
    @ShubhamKumar-qo6qs 10 месяцев назад

    well explained sir
    Thank you

  • @kaifshaikh6335
    @kaifshaikh6335 Год назад

    GREAT EXPLANATION sir In dry run

  • @arshuarshad1551
    @arshuarshad1551 9 месяцев назад

    your dry run is fantastic sir

  • @bhupendra382
    @bhupendra382 Год назад

    Bhai you taught excellent

  • @thathaseyyalubogadi5864
    @thathaseyyalubogadi5864 10 месяцев назад

    Thank you sir 😊😀😃🙂😉

  • @Gattiks_edit_OFFICIAL
    @Gattiks_edit_OFFICIAL 3 месяца назад

    🙌

  • @swagboltey102
    @swagboltey102 Год назад +1

    Why divide number by 10 and get remainder

  • @sanjibpaudel6921
    @sanjibpaudel6921 Год назад +5

    only applicable for 3 digit numbers

  • @status_beatz_1
    @status_beatz_1 Год назад

    Next level explanation 😁😁

  • @famousjedits_143
    @famousjedits_143 9 месяцев назад

    Really very helpful

  • @26_rajashrikhetmalis34
    @26_rajashrikhetmalis34 3 года назад +1

    Thanks sir

  • @gulabchandgupta5486
    @gulabchandgupta5486 3 года назад

    Nice ❤️❤️ concept and explained 🙏🙏

    • @xyzcontent5599
      @xyzcontent5599 2 года назад

      ruclips.net/channel/UCjEOyfxpWMY7tJO9D2rt5JQ

  • @alameen6329
    @alameen6329 Год назад

    Very helpful , thank u❤

  • @30vijaytyagi9
    @30vijaytyagi9 11 месяцев назад +1

    Thank You Sir

  • @pradeeppradeepkanaujiya8990
    @pradeeppradeepkanaujiya8990 2 года назад

    Great explain sir 😊😁😁😁

  • @yashmakwana956
    @yashmakwana956 2 года назад +1

    Super

  • @romanbirla5410
    @romanbirla5410 2 года назад

    Great Sir...💯❤️

  • @RoyalKingharshpandit
    @RoyalKingharshpandit Год назад +1

    Thanku sir g

  • @PrasantaDas-cj4xe
    @PrasantaDas-cj4xe 10 месяцев назад

    Thank you so much 🙏🙏

  • @shubhamkumarjha9192
    @shubhamkumarjha9192 2 года назад

    Superb..👍❤️

  • @abhitapaniya9276
    @abhitapaniya9276 Год назад

    thank you sir you're great

  • @niteshnayak940
    @niteshnayak940 Год назад

    Great❤❤❤

  • @niteshtiwari9708
    @niteshtiwari9708 Год назад +1

    sir it will not work if our numbers digits 4 or more then 4 than what to do??

    • @byeeekosar
      @byeeekosar 6 месяцев назад

      Reminder ko 3 ke jagah 4 bar into kroo....simple

  • @tanupriya2571
    @tanupriya2571 2 года назад

    Wah sir

  • @surendradahare704
    @surendradahare704 2 года назад

    This is too good 😊😊😊

  • @gauravthakur6634
    @gauravthakur6634 Год назад

    ❤❤❤

  • @user-meeSS
    @user-meeSS 2 года назад

    Awesome explanation

  • @swapnilchate2412
    @swapnilchate2412 2 года назад

    Great Explain 👍

  • @soultune682
    @soultune682 Год назад

    It is occurs only for 3 digits not for 4,5..... digits , so it is not user friendly

  • @kartickchandramanna267
    @kartickchandramanna267 2 года назад

    Good explanation.
    Thanks 🙏

    • @xyzcontent5599
      @xyzcontent5599 2 года назад

      ruclips.net/channel/UCjEOyfxpWMY7tJO9D2rt5JQ

  • @pariagarwal1284
    @pariagarwal1284 Год назад

    Nice explanation 😀

  • @ankushdangi3154
    @ankushdangi3154 2 года назад

    Super sir ji

  • @Princesingh_26
    @Princesingh_26 2 года назад

    Sir aap kon sa compiler aur laptop use krte ho?

    • @RanvirS69
      @RanvirS69 2 года назад +1

      Dev c it comes with preinsatlled tdm gcc compiler and laptop I don't know

  • @karanthakur0228
    @karanthakur0228 3 года назад +1

    Switch statement pr bhi bnana vedio

  • @eshak3381
    @eshak3381 11 месяцев назад

    it is only applicable for 3 digit number but if we enter 4 digit number then u should multiply r*r*r*r but ur code doesn't work

  • @talibhussain7050
    @talibhussain7050 10 месяцев назад

    thankuu soo much

  • @skmdabdulbari6779
    @skmdabdulbari6779 2 года назад

    write a c program to find power of a number using for loop.........explaind with Dry run..

    • @xyzcontent5599
      @xyzcontent5599 2 года назад

      ruclips.net/channel/UCjEOyfxpWMY7tJO9D2rt5JQ

  • @sheetalsharma1675
    @sheetalsharma1675 2 года назад

    bhot acha padthe ho aap..

  • @prashantbhujbal9880
    @prashantbhujbal9880 11 месяцев назад

    Thanks a lot bhai❤😌

  • @abhinavsingh9315
    @abhinavsingh9315 Год назад

    nice explanation

  • @levisminch5913
    @levisminch5913 2 года назад +1

    This program wont work for number greater than 3 digits .

  • @dhanuu1062
    @dhanuu1062 11 месяцев назад

    Thank you sir🙏

  • @arbaazahmed1603
    @arbaazahmed1603 Год назад

    nice explain sir👍

  • @miraclebeats7542
    @miraclebeats7542 2 года назад

    Thanks sir 💯🥳

  • @alijuttjut8380
    @alijuttjut8380 Год назад

    Sir how to check given number is natural or not?