Program to print all Armstrong numbers under 1000 in C language

  Рет қаралды 249,743

MySirG.com

MySirG.com

Күн бұрын

Пікірлер: 234
@vandanasisodiya6025
@vandanasisodiya6025 6 жыл бұрын
Love you a lot....sir Ap itne acche h ki apki tarif k liye mere pas word nhi h...... Ap jb bhi kch btate ho, samjhate ho to sbko dyn me rkhte ho smart minded to samjh he le Lekin iske alawa Jo kch nhi janta h programming k bare me ap use bhi programmer bna dete......... No one like you sir..... Love you very much
@Vivekpandey7071.
@Vivekpandey7071. 5 жыл бұрын
Love u so much sir
@v5q211
@v5q211 4 жыл бұрын
Honestly speaking, the way this man teaches this particular language is probably the best on KZbin. I'm in btech 1st yr r8 now and I regret not taking cs in my +2
@tinytikhak9486
@tinytikhak9486 4 жыл бұрын
Same here...
@codilutions1057
@codilutions1057 3 жыл бұрын
me too bro, but I am a good c/c++ programer now (BCA Final)
@maageetatypingcyberkendra6554
@maageetatypingcyberkendra6554 3 жыл бұрын
@@codilutions1057 which college
@sudheeshka1990
@sudheeshka1990 2 жыл бұрын
Totally agree with you
@soweda7878
@soweda7878 2 жыл бұрын
Same here.. this man explains so clearly each n every logic
@adityakashyap5776
@adityakashyap5776 6 жыл бұрын
are sir kya kamal ka kaam kr rhe h aap college k techer se to kuch sikh nhi paye apke videos dekh dekh k sara syllabus cover kiya h aap dhany h sir
@sanaabid4550
@sanaabid4550 7 жыл бұрын
Thanks Sir...Learn A lot from you...I had so many Doubts regarding C language but After watching your videos it has been cleared very much....thanxx
@mahendramosalpuri8928
@mahendramosalpuri8928 4 жыл бұрын
Love you sir, i able to learn c language by watching your vedio tutorial. sir you are inspiration of my learning. sir i have lack of ward that i can thanks you .,you are that kind of person every word is insufficient to describe your dedicated work for weak and depressed student of the countory. if I am PM of India I have gave you padmhshrii award for national services.howeve no prize can be exist here which prooved your dedicated teaching,you are another name of resfect wish you all the best sir.keep your teaching plz sir
@gouravmishra9803
@gouravmishra9803 4 жыл бұрын
What are you learning now
@singtoliveorlivetosing
@singtoliveorlivetosing 7 жыл бұрын
really thankful sir for you untiring efforts to educating us
@mdahmed8867
@mdahmed8867 6 жыл бұрын
U R The Best Sir .I have sawn A lot of people who don't even teaches me anything by hearing them
@SmartProgramming
@SmartProgramming 6 жыл бұрын
hats off to your explanation sir, thank you for this tutorial 👍👍🙂
@rajgote1865
@rajgote1865 4 жыл бұрын
@Smart Programming sir this logic is incorrect i think i also watched your video "How to check for Armstrong number " then after learning that i tried to print all Armstrong numbers between 1 to 1000 and result was 1,2,3,4,5......9,153,370....and so on which i thought was incorrect u told us that Armstrong number is sum of the digits of a number raise to power no.of digits am i right sir....so how come this program is correct in this program every numbers power is 3.... please answer or else request you to upload a video(How to print Armstrong numbers from 1 to 1000 in java)...we badly need your video sir please help
@classicstudyindia724
@classicstudyindia724 3 жыл бұрын
Nice
@vakhariyajay2224
@vakhariyajay2224 3 жыл бұрын
Thank you very much. You are a genius. 👍👍🔝🔝
@brijkidulari
@brijkidulari 5 жыл бұрын
Jahar....💖💖💥💥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥ye channel me ko it sector me job dilwakr hi chodega.....Nice explaination saurabh sir.....thanku🤗🤗🤗
@letskickwithknowledge6448
@letskickwithknowledge6448 5 жыл бұрын
Sir thanku ... seriously appreciated
@saurabhsuman9561
@saurabhsuman9561 6 жыл бұрын
Good work, you help many of students to build their logic, thanks for helping
@rohankylan8375
@rohankylan8375 3 жыл бұрын
sorry to be so offtopic but does someone know a trick to get back into an instagram account?? I somehow lost my login password. I love any tips you can give me
@lsdxsaurabh2798
@lsdxsaurabh2798 2 жыл бұрын
Best mentor in the world...
@raginisrivastava9408
@raginisrivastava9408 8 жыл бұрын
superb sir ...please upload more videos 😊
@mdzoheb1115
@mdzoheb1115 5 жыл бұрын
Tq so much sir aap bahot he acha bolto sir.... Aur b videos Dalo sir
@rishabhrathore6549
@rishabhrathore6549 4 жыл бұрын
Sir Ji don't know what to say, but your way of teaching is just brilliant you solve every doubt in just a snap.... just lots of love for you that's all we can give you..
@rinkalrao3853
@rinkalrao3853 6 жыл бұрын
Your videos are very helpful to me sir tysmmmmmmmmm for this keep it up
@YogeshKumar-jz6cx
@YogeshKumar-jz6cx 5 жыл бұрын
sir u r great it is very easy to understand
@bolochale
@bolochale 8 жыл бұрын
you are great sir. please upload more videos about array in c
@howtodo5589
@howtodo5589 8 жыл бұрын
very good teaching style.
@specialforcesofindia7
@specialforcesofindia7 4 жыл бұрын
Sir really too good itna ki video pause karke comment section pe.aana pda
@adityapatel6815
@adityapatel6815 7 жыл бұрын
thanku very much sir....ur videos are very helpful...thanks
@rekhasingh-xy2ow
@rekhasingh-xy2ow 7 жыл бұрын
Astonishing way of teaching sir
@rcreation5475
@rcreation5475 2 жыл бұрын
Great explanation
@arvindkumarsharma4520
@arvindkumarsharma4520 5 жыл бұрын
Very good 👍😇😇😇video🎥
@sourabh.jangra
@sourabh.jangra 2 жыл бұрын
Brilliant Explanation !!
@mysirgdotcom
@mysirgdotcom 2 жыл бұрын
Glad it helped!
@ritik964
@ritik964 9 жыл бұрын
thank you sir for uploading this.... ☺☺
@ashishsrivastava5457
@ashishsrivastava5457 7 жыл бұрын
Sir you are the best
@apurbadebnath4099
@apurbadebnath4099 7 жыл бұрын
Really awesome sir..
@kunduverma9538
@kunduverma9538 2 жыл бұрын
A positive integer is called an Armstrong number (of order n ) if abcd... = an + bn + cn + dn +
@rupalisingh9038
@rupalisingh9038 6 жыл бұрын
Sir thanku so much.... You are great 😊
@susiljung2226
@susiljung2226 2 жыл бұрын
you are just Awesome❤️❤️❤️
@kunduverma9538
@kunduverma9538 2 жыл бұрын
An Armstrong number, also known as narcissistic number, is a number that is equal to the sum of the cubes of its own digits.
@praveenbaggiri1329
@praveenbaggiri1329 7 жыл бұрын
please upload more videos which are more useful to learn c language very fastly.......tq...
@Mansha_mehandi_art
@Mansha_mehandi_art Жыл бұрын
Thank you so much sir 🙏🏻
@subodhray9067
@subodhray9067 7 жыл бұрын
thanx sir i wants to more and more vedio
@siddharthchoudhary3497
@siddharthchoudhary3497 6 жыл бұрын
2 to 9 bhi Armstrong no. He.......for which......we have to calculate number length......n then use for loop to multiply powersum and remainder
@AlokSingh-gl6hz
@AlokSingh-gl6hz 4 жыл бұрын
Cube of 2 is 8 and 2 not equal to 8 how can it be Armstrong no.
@PrakashYadav-ur8or
@PrakashYadav-ur8or 2 жыл бұрын
@@AlokSingh-gl6hz Definition of Armstrong number: Armstrong numbers are the integer such that the sum of the digit with power(exponent) n is equal to the number itself. Here n=no. of digit in given number(number which you are checking armstrong). 1 2 3 4 5 6 7 8 9 153 370 371 407 1634 8208 9474 these all numbers are Armstrong numbers from 1 to 10000. example: 1634 is this number is an armstrong number or not? 1^4 + 6^4 + 3^4 + 4^4 = 1634 we wrote 4 is the power of each digit because 1634 contain 4 digit. so, yes 1634 is an Armstrong number
@syedsabeer1027
@syedsabeer1027 5 жыл бұрын
excellent sir
@mohdyasir5421
@mohdyasir5421 3 жыл бұрын
Thank you sir 👌👍👍
@mitrachalaune8449
@mitrachalaune8449 7 жыл бұрын
dhanyabad sir from nepal
@raavi2945
@raavi2945 3 жыл бұрын
Well explained
@anshumishra2168
@anshumishra2168 5 жыл бұрын
good even sir , why we are assigning the value of s in body of for loop instead of assign the value at deceleration time.
@rahulmaheshwari4953
@rahulmaheshwari4953 4 жыл бұрын
Correct question.. I initialize in declarations show error
@ishikagupta3135
@ishikagupta3135 4 жыл бұрын
We can also assign value of s in int
@sonalibanage50
@sonalibanage50 3 жыл бұрын
Very very thanks sir 😇
@AnushkaSingh-sc6ej
@AnushkaSingh-sc6ej 4 жыл бұрын
You are commendable ❤️
@happy2286
@happy2286 3 жыл бұрын
Armstrong number means If 153 check it is Armstrong or not so, 153 ke cube ka sum bhi 153 agr aaya to 153 Armstrong number hoga.... Example- 153-1 ka cube+5 ka cube+3ka cube =1+125+27 =153 So 153=153 So 153 is Armstrong number...
@subhamagarwal476
@subhamagarwal476 3 жыл бұрын
God level explanation!!
@theseriousguy2136
@theseriousguy2136 6 жыл бұрын
sir 2 to9 are also Armstrong,and if I consider 1234 the 1^4+2^4+3^4+4^4 must be checked=or != 1234 ;sir but int your code cube of the digits are taken; it won't display 2,3,4..9 ;so sir please clear my doubt; as 2^1=2
@mayankbhatt1790
@mayankbhatt1790 6 жыл бұрын
Correct bro
@anujdada
@anujdada 6 жыл бұрын
absolutely correct brother.
@FROMBORN2DEATH
@FROMBORN2DEATH 5 жыл бұрын
U R WRONG BRO, UNDERSTAND THE DEFINITION OF ARMSTRONG NUMBERS, 2 TO 9 HOW COME IS A ARMSTRONG NUMBER? AND IF U UNDERSTAND NOW, SO DELETE THE QUESTION. BEFORE ASKING A QUESTION THINK MANY TIMES, HOW COME A SOFTWARE CAN DO WRONG CALCULATION,. HOPE U UNDERSTAND WHAT M I TRYING TO REALIZE YOU.
@archanasrivastava3338
@archanasrivastava3338 5 жыл бұрын
Yes my teacher also told me that power will be as number of digit not only cube
@sushantpawar5635
@sushantpawar5635 3 жыл бұрын
@@FROMBORN2DEATH you must be bhakt ..cause your logic system has failed😂😂😂😂
@loser7990
@loser7990 5 жыл бұрын
The no.s from 2 to 9 also,should be included in the answer....
@yaminisingh8116
@yaminisingh8116 5 жыл бұрын
Best explanation sir
@Vortex_mystery
@Vortex_mystery 4 жыл бұрын
Osm sir
@StrollerEngineer
@StrollerEngineer 6 жыл бұрын
Jhakkaas
@swapnilmali1006
@swapnilmali1006 5 жыл бұрын
My sir g, First of all check out the correct definition of Armstrong number . The program that you had explained will only give 3 digit Armstrong numbers not 1,2, digit, but these are also in 1 to 1000 .
@exploreworld743
@exploreworld743 5 жыл бұрын
Are bhai 1000 tak sirf 5 hi armstrong nos hoty hai or ye sb py applicable hai
@exploreworld743
@exploreworld743 5 жыл бұрын
1000 tak 5 hi armstrong nos hoty hai or ye sbhi P applicable hai
@sanjughosh4826
@sanjughosh4826 5 жыл бұрын
@@exploreworld743 1000 vi tho ak armstrong number hay
@exploreworld743
@exploreworld743 5 жыл бұрын
@@sanjughosh4826 nhi bhai
@poojap3311
@poojap3311 4 жыл бұрын
@@sanjughosh4826 ni
@mehboobahmed892
@mehboobahmed892 4 жыл бұрын
Sir G tusi GREAT ho!!!!!!
@Abhisheksharma-ve2yg
@Abhisheksharma-ve2yg 3 жыл бұрын
adding one to each digit of a number in c programming??
@prathamesh1087
@prathamesh1087 4 жыл бұрын
bhot hard sir
@talhaarshad3698
@talhaarshad3698 5 жыл бұрын
Sir g is mein 2 se kai kr 9 tk b show hone chahiye q k ye b armstrong number q k 2 se 9 tk aik digit hai jb in ki pow one lainge tou phir b wo hi number aaye ga js ki wja se ye b armstrong number howe Guide me Plz Sir
@chandanshani5244
@chandanshani5244 7 жыл бұрын
Thank u sir u are great..!! 😀
@adnanaadi9528
@adnanaadi9528 8 жыл бұрын
bahut awlla sir g thnx
@vinaypratapsingh2857
@vinaypratapsingh2857 7 жыл бұрын
h
@sumiyamim5566
@sumiyamim5566 3 жыл бұрын
Plz make more videos like this
@sukanyaverma7715
@sukanyaverma7715 3 жыл бұрын
very nice sir
@mukulsaini2961
@mukulsaini2961 2 жыл бұрын
Great way to explain, but this only applies for number between 300 to 999 . Because when we run this program its not given us number 2,3,5,6... Which also a armstrong number and also not applicable for more the 1000 .
@sumitjadhav3573
@sumitjadhav3573 Жыл бұрын
actually 1 to 9 are Armstrong numbers
@vgk-lm8vl
@vgk-lm8vl Жыл бұрын
agr mai 4000 range daalu to mujhe 4 baar multiple krna hoga r in according to this programme?
@priyankasawant265
@priyankasawant265 6 жыл бұрын
Very good sir
@rushikeshraut3709
@rushikeshraut3709 6 жыл бұрын
Sir, why reset the value 0 of s? Please describe briefly
@ashishsrivastava5457
@ashishsrivastava5457 7 жыл бұрын
Sir you are the best
@ConceptOfProgramming
@ConceptOfProgramming 8 ай бұрын
Sir aapne x aur s variable ko kyu declare kiye ???
@umargul5644
@umargul5644 3 жыл бұрын
Great
@shivarajput1043
@shivarajput1043 4 жыл бұрын
Thanku Sir ji
@krutagnpatel9760
@krutagnpatel9760 4 жыл бұрын
sir aapne to every numbe me cube kiya he 1 to 99 me thodi r*r*r aayega?
@vishwajeetos1022
@vishwajeetos1022 2 жыл бұрын
Sir baki sab to thik h, lekin one digit bale numbers to aaye hi nhi isme, like 1,2,3,4,5,6,7,8,9 these are also armstrong number as per my knowledge…
@sudhanshugoel3532
@sudhanshugoel3532 7 жыл бұрын
sir, if we initialise s=o while declaring it (int s=0) rather than doing in body of for loop ,what is the problem in this why we are not getting the correct output.pls sir tell me
@shadestorm3995
@shadestorm3995 7 жыл бұрын
it is because when you declare s=0 outside the loop then after 1st iteration some value will still be present in s. and when you will evaluate for next no. the program will add old value of s to it hence changing your result. but when you initialize it inside the loop then after every iteration its value will be reinitialized to 0. I hope you get the point.
@SonuKumar-qz1wu
@SonuKumar-qz1wu 7 жыл бұрын
+Shade Storm you correct. when the going to check in loop every time s first zero but after checking s assign some new value for checking s==n. so if we assig s=0 out of loop then it not went correct .
@user-xg2wj4dy5f
@user-xg2wj4dy5f 5 жыл бұрын
Thank you sir you the best
@SohelRana-hi7ec
@SohelRana-hi7ec 6 жыл бұрын
Thank You sir, From #Bangladesh
@Nitincode1109
@Nitincode1109 5 жыл бұрын
you are good sir
@AyushRaj-tk3xi
@AyushRaj-tk3xi 7 жыл бұрын
sir bt agar hmko randomly koi no de diya gya to hmlog count ka concept use kar sakte h kya likes s=s*r(to the power count) bt uska logic nhi samajh m aa rha h
@srushtisinhaldance6909
@srushtisinhaldance6909 5 жыл бұрын
🤗🤗🤗
@adnanaadi9528
@adnanaadi9528 8 жыл бұрын
thnx sir btt more video in c++
@VikasSharma-bw5ly
@VikasSharma-bw5ly 5 жыл бұрын
why we can asign int n,x,r,s=0; i try s=0; but program run only 1 all possible term not print why sir
@eshantkubde8709
@eshantkubde8709 8 жыл бұрын
thank you very very much......!!!!!!!!!!!!!!!!
@sabitaojha80
@sabitaojha80 6 жыл бұрын
Even 1 &2 digit numbers can be armstrong for which it doesnot work. For two digit no it is to be squred
@RutujaDevgude
@RutujaDevgude 5 ай бұрын
But agar muze 1 to 1000 nahi balki 150 to 1000 tak he armstrong number chaiye to is program main kya change kare sir
@zameerhaider5392
@zameerhaider5392 6 жыл бұрын
Good sir
@JayPatel-ok1bc
@JayPatel-ok1bc 4 жыл бұрын
Sir... Is program me s=0; intialize pahele karte it means int k niche to program ka result 1 hi aata hai . Aisa kyu huya?
@shivanikhandelwal2239
@shivanikhandelwal2239 6 жыл бұрын
very very thankful sir
@shivamm9198
@shivamm9198 4 жыл бұрын
Sir 2,3,4,5,6,7,8,9 is also Armstrong number.
@mysirgdotcom
@mysirgdotcom 4 жыл бұрын
Yes indeed
@stuped1106
@stuped1106 3 жыл бұрын
Helped a lot
@shaheenparveen3531
@shaheenparveen3531 7 жыл бұрын
sir please upload peterson's program in c
@mayanksharma8150
@mayanksharma8150 5 жыл бұрын
सर आप जिस editor का use कर रहें है उसका क्या नाम है कैसे install होता है?? Plz reply me
@usmemes7675
@usmemes7675 6 жыл бұрын
Thank you so much sir 😊👍
@sayam319
@sayam319 4 жыл бұрын
Thank you sir😊
@AvinashSingh-uv2ip
@AvinashSingh-uv2ip 5 жыл бұрын
sir, 2,3,4,5,6,7,8,9....ye sb v to armstrong no. hai na?
@abhinandanjain3961
@abhinandanjain3961 4 жыл бұрын
Sir , Why we store n value in x ?
@AlokSingh-gl6hz
@AlokSingh-gl6hz 4 жыл бұрын
Thanks
@howtodo5589
@howtodo5589 8 жыл бұрын
hii i have a question 0 to 9 are also Armstrong number....???. please reply
@cypriankamilnorwid7777
@cypriankamilnorwid7777 8 жыл бұрын
yes, they are
@AsadUllah17
@AsadUllah17 8 жыл бұрын
yes, they are! So, the best way to write that whole program is to: printf("Armstrong numbers are: 1 2 3 4 5 6 7 8 9"); // at the place of very first printf in the beginning of program!
@shadestorm3995
@shadestorm3995 7 жыл бұрын
2-9 are not...
@samiulhaque3938
@samiulhaque3938 6 жыл бұрын
An n-digit number that is the sum of the nth powers of its digits is called an n-narcissistic number. It is also sometimes known as an Armstrong number, perfect digital invariant (Madachy 1979), or plus perfect number. Hardy (1993) wrote, "There are just four numbers, after unity, which are the sums of the cubes of their digits: 153=1^3+5^3+3^3, 370=3^3+7^3+0^3, 371=3^3+7^3+1^3, and 407=4^3+0^3+7^3. These are odd facts, very suitable for puzzle columns and likely to amuse amateurs, but there is nothing in them which appeals to the mathematician." Narcissistic numbers therefore generalize these "unappealing" numbers to other powers (Madachy 1979, p. 164). The smallest example of a narcissistic number other than the trivial 1-digit numbers is 153=1^3+5^3+3^3. (1) The first few are given by 1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407, 1634, 8208, 9474, 54748, ... (OEIS A005188).
@shivangkhare6429
@shivangkhare6429 6 жыл бұрын
Wow
@kg_asheesh
@kg_asheesh 6 жыл бұрын
Thank you sir
@indrapalsharma8744
@indrapalsharma8744 5 жыл бұрын
Sir kya 1 to 100 me armstrong number 1 to 9 hote h agar haan toh sir isme print kyu nahi hue.
@karunakeshari1058
@karunakeshari1058 4 жыл бұрын
Thanks a lot sir
@danishbhatia1734
@danishbhatia1734 8 жыл бұрын
sir, why did you assign n into x? Why we dont go with n throughout the process?
@shadestorm3995
@shadestorm3995 7 жыл бұрын
that will alter the original value of n and then the for loop wont work properly.
@ankitdubey1807
@ankitdubey1807 6 жыл бұрын
Sir my entire output is not visible in console screen.Cant I scroll the console screen to view it.Plz help
@arvindkumarsharma4520
@arvindkumarsharma4520 5 жыл бұрын
Love you😘❤️😘❤️😘❤️😘❤️😘❤️😘 a lot sie
Program to calculate x power y in C
14:01
MySirG.com
Рет қаралды 103 М.
Program to calculate LCM of two numbers in C language
20:36
MySirG.com
Рет қаралды 224 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
Special Programs in C− Check If The Number Is Armstrong Number
12:16
Program to check whether a number is Prime or not in C
18:47
MySirG.com
Рет қаралды 341 М.
Python Armstrong Number Program (For 3 Digit Number) - In Hindi
11:05
Flow chart of Armstrong Number C programming
19:26
Helping Tutorials
Рет қаралды 52 М.
C Program to Check a Number is Armstrong or Not | Learn Coding
11:22
Program to print all prime numbers between two numbers in C
16:12
Program to calculate sum of first N natural numbers in C
16:03
MySirG.com
Рет қаралды 83 М.
Program to print first N terms of Fibonacci series in C
14:45
MySirG.com
Рет қаралды 279 М.
C Armstrong Number Program | In Hindi
10:26
codeitup
Рет қаралды 53 М.
C Program to Print Star Pattern - Part 1 | Learn Coding
17:58
Learn Coding
Рет қаралды 891 М.