Тёмный

Java program to check number is armstrong or not | Learn Coding 

Learn Coding
Подписаться 2,1 млн
Просмотров 157 тыс.
50% 1

Java Full Course for Beginners...!👇👇
• Java Programming
Please Like | Share | SUBSCRIBE our Channel..!
Learn Coding
🙏🙏🙏
Like our Facebook Page...!
Learn Coding
Don't forget to tag our Channel...!
#ArmstrongNumber
#LearnCoding
#ask4help
#armstrongprogram
#checkarmstrongornot
#JavaArmstrongProgram
#ArmstrongInJava
#programforarmstrongnumber
#ArmstrongOrNot
#JavaArmstrongProgram

Опубликовано:

 

7 дек 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 187   
@hrithiksamala1729
@hrithiksamala1729 2 года назад
The way your teaching java is really appreciable.👏 Thank you so much 😊
@chakradharpalavalasa7743
@chakradharpalavalasa7743 Год назад
very nice boss, i can say for 100% that no one in youtube has taught as simple as like you, thank you so much
@samdtaslimarif4687
@samdtaslimarif4687 Год назад
I agree 💯
@beastman4523
@beastman4523 Год назад
Yes you are right
@ohmyadi
@ohmyadi Год назад
I hardly do comments but i have to say your teaching way is awesome, Im learning alot from your videos..... Thank you so much.
@mohammedarif9316
@mohammedarif9316 8 месяцев назад
Wow.... Kya Samjhaya apne! Very simple and understandable.
@vinayakbadekar1024
@vinayakbadekar1024 2 года назад
I liked the video very much and the line explaination with logic best teaching video seen till now
@Vikas_Chouhan.
@Vikas_Chouhan. Год назад
The way you teach is truly amazing and make so simple to understand Thank you sir ❤....!
@anishpoojari5169
@anishpoojari5169 2 года назад
today was my first day or first experienced in your RU-vid channel and I like it most the way you teach sir it's an request to you keep it up and keep teaching us 😊😊
@mrtech6667
@mrtech6667 Год назад
You are done great work thank you so much for creating this video ☺️
@namansharma9344
@namansharma9344 3 года назад
simple and nice logic sir thankyou so much
@giriprasadp1726
@giriprasadp1726 Год назад
sir great learning... great knowledge..... smooth understanding ....all the best
@e-teslaacademy1031
@e-teslaacademy1031 2 года назад
Explanation is great, thanks
@whatsaappstatus6452
@whatsaappstatus6452 Год назад
Thanks bro, finally i understood this logic on your channel ❤️🔥
@SakshiSharma-ci4wr
@SakshiSharma-ci4wr Год назад
The "BEST" explanation ever💫
@prabhachaudhary7055
@prabhachaudhary7055 5 месяцев назад
Thank you so much..after years of nt understanding this program..I just done it today👍🏻🙌
@pakeducation6579
@pakeducation6579 Год назад
Thanks you sir your method is very easy and clear in short time ❤
@shubhkritsrivastava6121
@shubhkritsrivastava6121 Год назад
You teach programming the best 🙏🙏
@bhagyamanthale3080
@bhagyamanthale3080 Год назад
Thank you so much sir You are a life saver 🙏🙏
@Lets_Travel712
@Lets_Travel712 Год назад
Thank u sir . Ur teaching is very easy to learn....
@rajvardhanpatil.8066
@rajvardhanpatil.8066 Год назад
Milestone for beginners ❣️
@albatros21212
@albatros21212 Год назад
best teacher of programming
@samidhasharma5429
@samidhasharma5429 2 года назад
your paper pen work is OSM .thankyou sir.
@amanpawar2290
@amanpawar2290 2 года назад
bhut gajab ka logic he bhai 👌👌
@OmkarShinde-qk3ks
@OmkarShinde-qk3ks Год назад
Ek number explain kiya apne logic
@Imrankhan-qb5cm
@Imrankhan-qb5cm Год назад
Nice explanation sir thank you.
@pankajborse7064
@pankajborse7064 2 года назад
but this logic is not applicable for more than 3 digital numbers but simple logic for three digitals...thank you so much
@shivenrana7193
@shivenrana7193 2 года назад
same bro
@Rahulchoudhary-ho7si
@Rahulchoudhary-ho7si 3 года назад
simple and shandar logic
@ShivamSingh-vf3lq
@ShivamSingh-vf3lq Год назад
Best viedo sir Thank you u very much
@careerget24
@careerget24 Год назад
Sir aap ki vajah se me Java sikh paya hu
@kundanshukla17
@kundanshukla17 3 месяца назад
Bohat ache se samjhaya 👏🏻👏🏻👏🏻
@gs-qj4tq
@gs-qj4tq 2 года назад
nice explanation ,sir.
@aloneff760
@aloneff760 2 года назад
Thks sir very helpfulll...
@suryabhansinghrana5698
@suryabhansinghrana5698 Год назад
Wa yaar Bhai achee achee Sikh k jayege
@arpancs
@arpancs 2 года назад
Woww amazing 👍
@muskankukkar7047
@muskankukkar7047 2 года назад
Thank you much sir....
@AliHussain-un8wn
@AliHussain-un8wn 2 года назад
Sir aap bahot achha padhate ho
@trendingshorts8092
@trendingshorts8092 Год назад
thank you so much sir
@aruram3121
@aruram3121 Год назад
I love your teaching style. The way you teach us is fantastic. The Armstrong number program you taught us in this video , is wrong concept. Please correct it.
@myengineering3219
@myengineering3219 2 года назад
Nice explanation
@RahulSharma-mh8sq
@RahulSharma-mh8sq Год назад
Great job brother 🎉
@sakshamgamerz686
@sakshamgamerz686 2 месяца назад
after While loop the n value will be =0 and we will compare the value 0 in if else. Thanks Sir 👍👍
@MadhuSharma-du1dt
@MadhuSharma-du1dt 2 года назад
Thanks sir ji
@royalrajput5368
@royalrajput5368 3 года назад
Great 👍
@gladeon-hb9iu
@gladeon-hb9iu 4 месяца назад
thanku bhai
@MAX-ym1pm
@MAX-ym1pm 2 года назад
I also tried my own sir
@Wollesa
@Wollesa Год назад
ek no. sir
@nazirali6227
@nazirali6227 Год назад
Thank u sir..
@samiranroyy1700
@samiranroyy1700 12 дней назад
thank you sir🥰
@manishimmanuel6543
@manishimmanuel6543 Год назад
SIR I LOVE TEACHING method aap kaha se sir
@jayvardhandesai6940
@jayvardhandesai6940 2 года назад
thanks sir
@priyankasaha4190
@priyankasaha4190 3 года назад
👍🏼👍🏼👍🏼👍🏼👍🏼👍🏼
@sayam964
@sayam964 3 года назад
Thanks
@mostofaomarfattharusho8080
@mostofaomarfattharusho8080 Год назад
Could you Make Algorithm series with Java
@nisithkhawas6558
@nisithkhawas6558 11 месяцев назад
how calculate to the power n Like 5^7 or 9^100 etc?
@X_tutorial
@X_tutorial 6 месяцев назад
Can we use math. Pow insted of multiplying it will be more easy
@kainaatmakhani6550
@kainaatmakhani6550 2 года назад
Good job
@pakeducation6579
@pakeducation6579 Год назад
Please sir make a video on roadmap for Artificial intelligence
@rocking_star7880
@rocking_star7880 Год назад
Sir, can share code for strong number with range....
@hasanchauosh7380
@hasanchauosh7380 5 месяцев назад
sir but user can input any length of digit..how can u say its lenth is 3 only eg:(rem*rem*rem)
@narayanheroff2344
@narayanheroff2344 5 месяцев назад
kya bath hai😊
@THECOMPETITORGUY
@THECOMPETITORGUY 5 месяцев назад
thanks
@akshaygupta3822
@akshaygupta3822 Год назад
mast bhai
@pkhatua7964
@pkhatua7964 2 года назад
Great
@abhishekgorshi9822
@abhishekgorshi9822 Год назад
sir please tell my mistake I want to check how many armstrongs are there between 151 and 200 import java.util.Scanner; class ams { public static void main(String[] args) { int re,x=0; for(int n=151; n151) { re=n%10; x=x+re*re*re; n=n/10; } if(x==n) { System.out.println(n); } else { System.out.println(" this number is not armstrong"); } } } }
@anushavernekar9859
@anushavernekar9859 Год назад
bro make a vedio that is satisfied for all type of armstrong numbers
@sheetalsharma1675
@sheetalsharma1675 Год назад
Suprr see upr pdate ho
@AnitaChaudhari-xb9xs
@AnitaChaudhari-xb9xs День назад
Thankyou
@chakradharpalavalasa7743
@chakradharpalavalasa7743 Год назад
pls do it for any number of digits
@manishnayak930
@manishnayak930 10 месяцев назад
love you bruhhhh
@sankar430
@sankar430 Год назад
Dear sir , from 1to 9 all numbers are armstrong number but here this code is not aplicable for 1 to 9.
@faizan2364
@faizan2364 4 месяца назад
Bro agar no. Input liye he to kese pata chalega rem ko kitni bar multiple karna he( rem*rem*rem har program me 3 bar nahi kar skte na)
@RishabhSingh-sw7uq
@RishabhSingh-sw7uq 2 года назад
What about 4,5,6....digit number.
@futureworld1807
@futureworld1807 2 года назад
I understand what you wrote in this prog i write same but there have under line all variable i can't understand what is the prob? I show you image but in comment no option share image..Please hlp sir..
@futureworld1807
@futureworld1807 2 года назад
Aap ka har explanation easy to understand h...Mere liye samjh na bohat asan ho raha h...Keep it up sir, Mera prob solve kar dijiye samaj me nahi a raha kya kare...
@Sigma_Di4ry9
@Sigma_Di4ry9 2 года назад
@@futureworld1807 kya problem hai bolo?
@naaz7847
@naaz7847 Год назад
sir but if we give any other digit no. except three ,then this logic is not working....means for 4,5,6 digit no. this logic is not working
@hukumchandrathod5540
@hukumchandrathod5540 Год назад
it is working
@emrankhan5348
@emrankhan5348 2 года назад
This logic is not applicable for more than 3 digital numbers. plz provide more than 3 digital number
@chaitalinandi35
@chaitalinandi35 Год назад
Yes u r right
@abdulrahim7763
@abdulrahim7763 6 месяцев назад
tried without while loop..this is working fine for me (give any number within the limit of integer data type) Scanner sc=new Scanner(System.in); System.out.println("Enter any number to find out if it is a Armstrong number or not"); int input=sc.nextInt(); String s=""; String count=s.valueOf(input); int input_size = count.length(); int digit; double Armstrong=0; double result=0; int actual=input; if(input>0) { for(int i=1;i
@pavankumarbingi2551
@pavankumarbingi2551 Год назад
Hi ,it's working only for for 3digits numbers...
@user-ov5lf4ty8e
@user-ov5lf4ty8e Год назад
yes bhai
@zaheerbagwan1542
@zaheerbagwan1542 7 дней назад
please DSA sikhao Java mein
@MAX-ym1pm
@MAX-ym1pm 2 года назад
My code is applicable to every numbers
@devrajsrivastava7446
@devrajsrivastava7446 2 года назад
Finally got a video with 0 dislike
@mahesh1simhadri
@mahesh1simhadri Год назад
what if I enter a 4 digit number does it still work?
@chaitalinandi35
@chaitalinandi35 Год назад
No not working
@swethamahapatro09
@swethamahapatro09 Год назад
Sir.. 2 is an armstrong number but your code prints that it is not..
@booksreviews9282
@booksreviews9282 6 месяцев назад
sir but this program is only for 3 digit what if we have n digits in a number but like your explanation
@priyanshi_78
@priyanshi_78 Год назад
Sir apka koi app h kya jha app paid course krate h aur interview ki taiyari
@gnsnoonekabhai9005
@gnsnoonekabhai9005 3 года назад
it's easy 👌
@LearnCodingOfficial
@LearnCodingOfficial 3 года назад
Please Share kr do 🙏🙏🙏
@Ashu_Kumar21
@Ashu_Kumar21 2 года назад
@@LearnCodingOfficial why don't you teach for n digits 😞 I recommend your channel to all my friend and now they said me that he didn't teach for n digits 😞😞😞 Please make a video for n digits
@user-rz7ih1it6n
@user-rz7ih1it6n Год назад
What about 4-digit number ArmStrong number. provide a solution to this Related
@mayne4672
@mayne4672 Год назад
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner in=new Scanner(System.in); int n=in.nextInt(); int p=n, q=n, count=0, check=0, value=n; while(p!=0){ int rem=p%10; count++; p=p/10; } while(n!=0){ int rev=n%10; check=((int)(Math.pow(rev, count))+check); n=n/10; } if(check==value){ System.out.println(value+" is a Armstrong number"); }else System.out.println(value + " is not a Armstrong number"); } }
@thecomdeykatta
@thecomdeykatta Год назад
Armstrong no in between 1 to 500 ka vdo kijiye
@camperbaaz2908
@camperbaaz2908 Год назад
sir 1634 Armstrong no hai ya nahi
@mohilalkhandait8301
@mohilalkhandait8301 2 года назад
Sir python program bhi skate.
@amolnagrale
@amolnagrale 2 года назад
Sir ...isme 10 se hi kyu divide kiya hai
@manjunadhamanju1719
@manjunadhamanju1719 Год назад
For 4 digit number!?
@anything-lr4fc
@anything-lr4fc 3 месяца назад
what if i enter 6756 as input,,code crashes, PLEASE do some thinking before coding
@karthikhs6054
@karthikhs6054 Год назад
Why did you multiply three times, what ur user enter 4 digit number
@Codehelper786
@Codehelper786 3 месяца назад
This program only work for 3 digit armstrong number not for 4 or 5 digit amstrong number
@murliengineering6130
@murliengineering6130 Год назад
Is we take a 9474 it's not working because that power is 9^4+4^4+7^4+4^4=9474
@user-ov5lf4ty8e
@user-ov5lf4ty8e Год назад
SIR JI 1634 is also armstrong number par yeh us par kaam nhi krega plzz pehle value count karke bnaiye
@lokeshwarinandeshwar2628
@lokeshwarinandeshwar2628 2 месяца назад
Sir This only works for 3 digits
@kundansagare1834
@kundansagare1834 Год назад
Sir, please make a video on Rotating number like that 1234-...4123,3412
@user-ov5lf4ty8e
@user-ov5lf4ty8e Год назад
while(n>0) { rev=(rev*10)+ n%10; n=n/10; } System.out.println(rev);
@user-ov5lf4ty8e
@user-ov5lf4ty8e Год назад
public static void main(String[] args) { System.out.println("enter a number"); int n ,z, rev=0; Scanner sc = new Scanner(System.in); n = sc.nextInt(); // z=n; while(n>0) { rev=(rev*10)+ n%10; n=n/10; } s.o.p(rev);
@Giriagroandfashion
@Giriagroandfashion 11 месяцев назад
What if the User Enters 4 digit number
@sageninshu4318
@sageninshu4318 Год назад
what if the input is a 4 digit number?
@SaurabhSuman-nz5kw
@SaurabhSuman-nz5kw Год назад
import java.util.*; public class Main { public static void main(String[] args) { int n,arm=0,rem,d=0; Scanner sc=new Scanner(System.in); System.out.println("Enter the Number"); n=sc.nextInt(); while(n>0){ n=n/10; d++; } int c=n; while(n>0 ) { rem=n%10; arm=(rem*rem*rem)+arm; n=n/10; } if(c==arm){ System.out.println("Armstrong number"); } else System.out.println("Not Armstrong number"); } }
@RootSphereEnglish
@RootSphereEnglish 6 месяцев назад
"1634 "is also a Amstrong number this code is not working for that input.
Далее
ЭТОТ ПЕНЁК ИЗ PLANTS VS ZOMBIES - ИМБА!
00:48
Armstrong Number in Java - In Hindi
22:38
Просмотров 43 тыс.
5.16 Armstrong Number in Java
6:01
Просмотров 307 тыс.
Program To Check for Armstrong Number in Java by Deepak
16:11
Java Tutorial: Introduction to Arrays
15:52
Просмотров 818 тыс.