Example : How To Extract Digits From A Number in C

  Рет қаралды 19,173

CSE Learning

CSE Learning

Күн бұрын

Пікірлер: 31
@alvegrande7398
@alvegrande7398 2 жыл бұрын
Damn it took 30 secs for me to realize what professors explains in 3 hours... Thanks man
@cse-learning
@cse-learning 2 жыл бұрын
Thanks Alve. I am glad this helped you.
@RAISTAR90326
@RAISTAR90326 Жыл бұрын
thanks brother u explained the complicated thing so easily and it is very helpful for me 💗
@Bran-m1n
@Bran-m1n Ай бұрын
thank you so much
@oscarvazquez4600
@oscarvazquez4600 Жыл бұрын
Really good explanation thank you
@s000sdas
@s000sdas 2 жыл бұрын
Thanks bro, as a uni student this came clear.
@merlijn1722
@merlijn1722 2 жыл бұрын
Super useful! Thanks so much
@yokab
@yokab 2 жыл бұрын
Dude you rule!, thanks that was so useful!
@raneem_mousa
@raneem_mousa Жыл бұрын
Thanks that was helpful
@marticus9170
@marticus9170 Жыл бұрын
Thanks! Your explanation was really clear!
@monirul__kabir4854
@monirul__kabir4854 2 жыл бұрын
Nice man...
@success7550
@success7550 10 ай бұрын
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 10 ай бұрын
I am glad that I could help you. As the extracted number are stored in digit, you can add values of digits. kzbin.info/www/bejne/h3rdaKKMZ7Z6fbs --> You can see an example here. kzbin.info/www/bejne/h3rdaKKMZ7Z6fbs --> explanation is here in this video (in Hindi)
@success7550
@success7550 10 ай бұрын
@@cse-learning Thank you
@akaStarboyy
@akaStarboyy Жыл бұрын
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.
@tiredstudent8797
@tiredstudent8797 2 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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 !!!
@sabbir_ahmed_fahim
@sabbir_ahmed_fahim 11 ай бұрын
hhow i can relate why we use 10000% in C programming
@cse-learning
@cse-learning 10 ай бұрын
Question is not clear to me. please rephrase.
@cartoongaming3586
@cartoongaming3586 Жыл бұрын
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 Жыл бұрын
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 жыл бұрын
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. kzbin.info/www/bejne/fXKXe4SrrcqcmLs (In Hindi).
@talhasolkar8877
@talhasolkar8877 2 жыл бұрын
Thanks
Program: finding Sum of all digit of a number
1:57
CSE Learning
Рет қаралды 447
Count Digits in the Given Number | Logical Programming in C | Naresh IT
5:00
Naresh i Technologies
Рет қаралды 57 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
reverse of a number in c|c program to print reverse of a number
11:18
Sudhakar Atchala
Рет қаралды 102 М.
Pointers in C / C++ [Full Course]
3:47:23
freeCodeCamp.org
Рет қаралды 4,8 МЛН
Sum The Digits Of A Number | C Programming Example
3:46
Portfolio Courses
Рет қаралды 8 М.
you will never ask about pointers again after watching this video
8:03
Special Programs in C − Binary to Decimal Conversion
7:40
Neso Academy
Рет қаралды 249 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 2,4 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН