Example : How To Extract Digits From A Number in C

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

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

  • @alvegrande7398
    @alvegrande7398 ปีที่แล้ว +12

    Damn it took 30 secs for me to realize what professors explains in 3 hours... Thanks man

    • @cse-learning
      @cse-learning  ปีที่แล้ว +1

      Thanks Alve. I am glad this helped you.

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

    thanks brother u explained the complicated thing so easily and it is very helpful for me 💗

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

    Really good explanation thank you

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

    Thanks bro, as a uni student this came clear.

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

    Thanks! Your explanation was really clear!

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

    Super useful! Thanks so much

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

    Dude you rule!, thanks that was so useful!

  • @success7550
    @success7550 8 หลายเดือนก่อน

    thank you so much for the video, how do you go ahead to add those extracted numbers please. thank you again.

    • @cse-learning
      @cse-learning  8 หลายเดือนก่อน

      I am glad that I could help you.
      As the extracted number are stored in digit, you can add values of digits.
      th-cam.com/video/QIz7oV2QGGY/w-d-xo.html --> You can see an example here.
      th-cam.com/video/QIz7oV2QGGY/w-d-xo.html --> explanation is here in this video (in Hindi)

    • @success7550
      @success7550 8 หลายเดือนก่อน

      @@cse-learning Thank you

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

    Thanks that was helpful

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

    bro how can we extract the first digit , like we are finding last digit first by remainder method.??

    • @cse-learning
      @cse-learning  ปีที่แล้ว

      The straight answer is 'I don't think its possible' without any inbuilt function. In Python, its too easy.
      But as a programmer, its up to you what you are doing in back but getting the expected result.

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

    Nice man...

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

    how would you extract a specific digit from a number? for example if the number is 14672, I choose the 3rd digit, it extracts the number 6

    • @cse-learning
      @cse-learning  2 ปีที่แล้ว +3

      This can be achieved by multiple ways and it's totally depends on how you think.
      One approach can be, you can start a counter and whenever a digit is extracted, increment the counter.
      Once counter hits 3, you can print the digit.

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

    Thanks

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

    There should be a for loop and array assignment...otherwise the digit will replace the previous one

    • @this.saikat
      @this.saikat 3 ปีที่แล้ว

      no Actually there should be a check if it's 0. because the last quotient is 0. If it's 0 so the loop will be stop. I'm not taking about for loop or array.

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

    Nice !!!

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

    hhow i can relate why we use 10000% in C programming

    • @cse-learning
      @cse-learning  8 หลายเดือนก่อน

      Question is not clear to me. please rephrase.

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

    That is ok but i need to give a variable for each no like num=345 a=3 b=4 c=5...
    I need for n number please give me some idea.😅

    • @cse-learning
      @cse-learning  ปีที่แล้ว +1

      Create a dynamic array and store those numbers into that array. Study malloc/calloc and you would achieve what you want.

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

      @@cse-learning thank you boss

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

    Bro u said extraction of digits from a number 😓but you did reversing of number.

    • @cse-learning
      @cse-learning  2 ปีที่แล้ว

      Bro, Its extraction of digits only in reverse order. All the numbers are printed on console together so its looks like reverse of the number but in fact it is not.
      Reversing is different, you can get the clarity in this video. th-cam.com/video/GA4JQuxeibY/w-d-xo.html (In Hindi).

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

    Thanks