Count Digits in the Given Number | Logical Programming in C | Naresh IT

  Рет қаралды 57,147

Naresh i Technologies

Naresh i Technologies

Күн бұрын

Пікірлер: 54
@NareshIT
@NareshIT 5 жыл бұрын
Please Comment, Subscribe and Click Bell Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL
@atulitanand8664
@atulitanand8664 5 жыл бұрын
Sir what if number is 1034
@t260_nikitapatil3
@t260_nikitapatil3 3 жыл бұрын
@@atulitanand8664 instead of int take long int
@agodase6210
@agodase6210 5 жыл бұрын
Best teacher i ever seen for pgming...
@johnali4117
@johnali4117 2 жыл бұрын
I agree. this guy is pretty good at explaining things. There are other two guys as well who are good: Banger Rajua, and Sudhakar Sharma but they don't do any more videos as far as I can see.
@nithishbobby1410
@nithishbobby1410 5 жыл бұрын
Superb explanation and iam getting good clarification thank you
@ympoojitha5565
@ympoojitha5565 4 жыл бұрын
BEST EXPLANATION!!
@mr.anonymous4508
@mr.anonymous4508 5 жыл бұрын
amazing...keeep it up
@Crazy4DB
@Crazy4DB 5 жыл бұрын
Good explanation on program flow. Could be more nice if shown execution live with the result.
@aflowerforthegun
@aflowerforthegun 4 жыл бұрын
Brillient video. Thanks you
@aaparky7039
@aaparky7039 4 жыл бұрын
Very helpful, thank you.
@vijaykrishna3565
@vijaykrishna3565 3 жыл бұрын
Good explanation sir..👌👌
@shubisayeed8480
@shubisayeed8480 3 жыл бұрын
Thank you so much
@gujjukimasti9720
@gujjukimasti9720 4 жыл бұрын
but sir 0 is also digit if i have enter 007 then output only 1 digit because n !=0 or n>0. but 0 is a digit if i have enter 007. or user also enter negative value
@sansaikumarks1541
@sansaikumarks1541 5 жыл бұрын
Thank you sir
@dsouzasa8048
@dsouzasa8048 5 жыл бұрын
nice explanation thanks bro
@existingstars3665
@existingstars3665 4 жыл бұрын
Sir please do video on patterns in logical programming in c
@deepikadg6674
@deepikadg6674 5 жыл бұрын
How to know that , this is the logic writing for this program
@deepikadg6674
@deepikadg6674 5 жыл бұрын
@Srinivas Garapati Thank you so much
@dammanprathap3
@dammanprathap3 5 жыл бұрын
@Srinivas GarapatiSir I'm pursuing diploma in computer engineering Govt. Polytechnic Clg [T.S]. Nd now I'm started preparing for Ecet exam. Ur videos on programming are much helpful for me. Pls give me ur number to clarify my doubts 🙏🙏🙏. My 📱 nmbr 8367560305.
@existingstars3665
@existingstars3665 4 жыл бұрын
Sir i have a doubt sir Why we are using count value
@vishnupriya_vp
@vishnupriya_vp 5 жыл бұрын
Sir,, please upload more C++ examples
@sreeja7570
@sreeja7570 3 жыл бұрын
Sir if suppose I enterted n value as 123456789012 which is of 12 digits but o/p shows as 10 or something else which is not correct o/p is there any mistake in code???????
@surajjadhav2829
@surajjadhav2829 4 жыл бұрын
It does not apply for more than 10 digits.
@sreeja7570
@sreeja7570 3 жыл бұрын
Ss but why????
@vikasswaroopsen8865
@vikasswaroopsen8865 5 жыл бұрын
Sir plz numerical
@ajitdubey6503
@ajitdubey6503 4 жыл бұрын
Sir I got garbage value for 6 digits number .why??
@madhurendubhagat6186
@madhurendubhagat6186 3 жыл бұрын
how can we write the same code using for loop
@AamirKhan-lq6jx
@AamirKhan-lq6jx 3 жыл бұрын
Int main() { Int n, count=O; cin>>n; For(int I=O;I
@prakashreddy773
@prakashreddy773 3 жыл бұрын
What if i enter 0(zero) sir. 0 is a single digit that means it should show 1 digit but instead of displaying as 1 it displays 0. So it fails.
@AamirKhan-lq6jx
@AamirKhan-lq6jx 3 жыл бұрын
Ooh wow good question bro I tried and same happens but then I change my code a little n%10 will give us 1
@AamirKhan-lq6jx
@AamirKhan-lq6jx 3 жыл бұрын
Because by these we will get the remainder no but it will not work if u give more than one zero bro
@prakashreddy773
@prakashreddy773 3 жыл бұрын
Bro i was unable to understand it . can u send the program?
@AamirKhan-lq6jx
@AamirKhan-lq6jx 3 жыл бұрын
@@prakashreddy773 int main(){ Int n ,count=0; Cin>>n For (int I=o;I
@AamirKhan-lq6jx
@AamirKhan-lq6jx 3 жыл бұрын
By modulo operator u will get remainder bro
@seroujghazarian6343
@seroujghazarian6343 3 жыл бұрын
Or you could just use floor(log10(n))+1 and just be done with it. Lol.
@pmahaur962
@pmahaur962 2 жыл бұрын
why only n/10?what is the logic
@arunjoshi5633
@arunjoshi5633 5 жыл бұрын
Sir the count digit in given number program counting only 10 digits it is not able to count more than 10 digits Ex- For n=12345678910 Result is 0 And For n=1234567890 Result is 10
@mohitpatidar3119
@mohitpatidar3119 4 жыл бұрын
Yes,i am facing the same problem
@Rahul-tn4mo
@Rahul-tn4mo 2 жыл бұрын
just change the data type bro from int n to long n. It works
@satiskumarpanda7604
@satiskumarpanda7604 3 жыл бұрын
Sir its not applicable for more than 10 digits why is that so?
@AamirKhan-lq6jx
@AamirKhan-lq6jx 3 жыл бұрын
Because int hold only 10 digits I think try long int as a datatype
@sureshvadde4814
@sureshvadde4814 5 жыл бұрын
Vedio clarity ga pettandi 480 picsl pettina kanabadatle
@seroujghazarian6343
@seroujghazarian6343 3 жыл бұрын
Or you could just use floor(log10(n)) and just be done with it. Lol.
@TechProgrammingIdeas
@TechProgrammingIdeas 3 жыл бұрын
Thank u sir
@Constantine808
@Constantine808 3 жыл бұрын
Thanks u sir
Sum of Digits in the Given Number | Logical Programming in C | Naresh IT
5:02
Naresh i Technologies
Рет қаралды 80 М.
Print Perfect Numbers in Given Range | Logical Programming in C | Naresh IT
8:15
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Find the Factors of Given Number | Logical Programming in C | Naresh IT
5:44
Naresh i Technologies
Рет қаралды 73 М.
Insert Element into Array  | Logical Programming in C | Naresh IT
7:06
Naresh i Technologies
Рет қаралды 97 М.
Special Programs in C − Check If The Number Is Palindrome Number
8:14
Reverse Number Program in C | C Language Tutorial | Mr. Srinivas
5:35
Naresh i Technologies
Рет қаралды 511 М.
reverse of a number in c|c program to print reverse of a number
11:18
Sudhakar Atchala
Рет қаралды 101 М.
Find Largest Number without Array  | Logical Programming in C | Naresh IT
6:19
Naresh i Technologies
Рет қаралды 36 М.
C Program to find out sum of first and last digit of a given number
6:40