Java Program to Check Number is Armstrong or Not | Learn Coding

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024

Комментарии • 192

  • @hrithiksamala1729
    @hrithiksamala1729 3 года назад +12

    The way your teaching java is really appreciable.👏
    Thank you so much 😊

  • @ohmyadi
    @ohmyadi Год назад +4

    I hardly do comments but i have to say your teaching way is awesome, Im learning alot from your videos..... Thank you so much.

  • @chakradharpalavalasa7743
    @chakradharpalavalasa7743 Год назад +24

    very nice boss, i can say for 100% that no one in youtube has taught as simple as like you, thank you so much

  • @mohammedarif9316
    @mohammedarif9316 11 месяцев назад +1

    Wow.... Kya Samjhaya apne! Very simple and understandable.

  • @anishpoojari5169
    @anishpoojari5169 2 года назад +3

    today was my first day or first experienced in your RUclips channel and I like it most the way you teach
    sir it's an request to you keep it up and keep teaching us 😊😊

  • @careerget24
    @careerget24 Год назад +1

    Sir aap ki vajah se me Java sikh paya hu

  • @vinayakbadekar1024
    @vinayakbadekar1024 2 года назад +2

    I liked the video very much and the line explaination with logic best teaching video seen till now

  • @kundanshukla17
    @kundanshukla17 6 месяцев назад

    Bohat ache se samjhaya 👏🏻👏🏻👏🏻

  • @pakeducation6579
    @pakeducation6579 Год назад +1

    Thanks you sir your method is very easy and clear in short time ❤

  • @sakshamgamerz686
    @sakshamgamerz686 5 месяцев назад

    after While loop the n value will be =0 and we will compare the value 0 in if else. Thanks Sir 👍👍

  • @Vikas_Chouhan.
    @Vikas_Chouhan. Год назад +1

    The way you teach is truly amazing and make so simple to understand
    Thank you sir ❤....!

  • @VirendraMahamuni
    @VirendraMahamuni Месяц назад

    Best explanation ever seen on you tube , great job .

  • @prabhachaudhary7055
    @prabhachaudhary7055 8 месяцев назад

    Thank you so much..after years of nt understanding this program..I just done it today👍🏻🙌

  • @aruram3121
    @aruram3121 Год назад +1

    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.

  • @hasanchauosh7380
    @hasanchauosh7380 8 месяцев назад +1

    sir but user can input any length of digit..how can u say its lenth is 3 only
    eg:(rem*rem*rem)

  • @abdulrahim7763
    @abdulrahim7763 8 месяцев назад

    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

  • @SakshiSharma-ci4wr
    @SakshiSharma-ci4wr 2 года назад +1

    The "BEST" explanation ever💫

  • @VedantShripadPawar
    @VedantShripadPawar 2 месяца назад

    Best video I never comment but u r explaining is so good and simple😊

  • @suryabhansinghrana5698
    @suryabhansinghrana5698 2 года назад +1

    Wa yaar Bhai achee achee Sikh k jayege

  • @samidhasharma5429
    @samidhasharma5429 2 года назад +1

    your paper pen work is OSM .thankyou sir.

  • @ShivamSingh-vf3lq
    @ShivamSingh-vf3lq Год назад +1

    Best viedo sir Thank you u very much

  • @bhagyamanthale3080
    @bhagyamanthale3080 Год назад +1

    Thank you so much sir
    You are a life saver 🙏🙏

  • @OmkarShinde-qk3ks
    @OmkarShinde-qk3ks 2 года назад

    Ek number explain kiya apne logic

  • @shubhkritsrivastava6121
    @shubhkritsrivastava6121 Год назад

    You teach programming the best 🙏🙏

  • @amanpawar2290
    @amanpawar2290 2 года назад

    bhut gajab ka logic he bhai 👌👌

  • @Creation_712
    @Creation_712 Год назад

    Thank u sir .
    Ur teaching is very easy to learn....

  • @pankajborse7064
    @pankajborse7064 3 года назад +8

    but this logic is not applicable for more than 3 digital numbers
    but simple logic for three digitals...thank you so much

  • @X_tutorial
    @X_tutorial 8 месяцев назад

    Can we use math. Pow insted of multiplying it will be more easy

  • @Imrankhan-qb5cm
    @Imrankhan-qb5cm 2 года назад

    Nice explanation sir thank you.

  • @AliHussain-un8wn
    @AliHussain-un8wn 3 года назад

    Sir aap bahot achha padhate ho

  • @suraj_Suraj
    @suraj_Suraj 2 года назад

    Check for Armstrong number (any digit number):
    ruclips.net/video/iLVMwuisVTc/видео.html

  • @Wollesa
    @Wollesa Год назад

    ek no. sir

  • @manishimmanuel6543
    @manishimmanuel6543 2 года назад

    SIR I LOVE TEACHING method aap kaha se sir

  • @Rahulchoudhary-ho7si
    @Rahulchoudhary-ho7si 3 года назад

    simple and shandar logic

  • @aloneff760
    @aloneff760 2 года назад

    Thks sir very helpfulll...

  • @faizan2364
    @faizan2364 7 месяцев назад

    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)

  • @akshaygupta3822
    @akshaygupta3822 Год назад

    mast bhai

  • @whatsaappstatus6452
    @whatsaappstatus6452 Год назад

    Thanks bro, finally i understood this logic on your channel ❤️🔥

  • @giriprasadp1726
    @giriprasadp1726 Год назад

    sir great learning... great knowledge..... smooth understanding ....all the best

  • @sheetalsharma1675
    @sheetalsharma1675 2 года назад

    Suprr see upr pdate ho

  • @mostofaomarfattharusho8080
    @mostofaomarfattharusho8080 Год назад

    Could you Make Algorithm series with Java

  • @anushavernekar9859
    @anushavernekar9859 Год назад

    bro make a vedio that is satisfied for all type of armstrong numbers

  • @myengineering3219
    @myengineering3219 2 года назад +1

    Nice explanation

  • @mrtech6667
    @mrtech6667 2 года назад

    You are done great work thank you so much for creating this video ☺️

  • @samiranroyy1700
    @samiranroyy1700 3 месяца назад

    thank you sir🥰

  • @nisithkhawas6558
    @nisithkhawas6558 Год назад

    how calculate to the power n
    Like 5^7 or 9^100 etc?

  • @nazirali6227
    @nazirali6227 Год назад

    Thank u sir..

  • @rajvardhanpatil.8066
    @rajvardhanpatil.8066 2 года назад

    Milestone for beginners ❣️

  • @kainaatmakhani6550
    @kainaatmakhani6550 2 года назад

    Good job

  • @RahulSharma-mh8sq
    @RahulSharma-mh8sq Год назад

    Great job brother 🎉

  • @MadhuSharma-du1dt
    @MadhuSharma-du1dt 2 года назад

    Thanks sir ji

  • @muskankukkar7047
    @muskankukkar7047 2 года назад

    Thank you much sir....

  • @camperbaaz2908
    @camperbaaz2908 Год назад +1

    sir 1634 Armstrong no hai ya nahi

  • @MAX-ym1pm
    @MAX-ym1pm 2 года назад

    I also tried my own sir

  • @pakeducation6579
    @pakeducation6579 Год назад

    Please sir make a video on roadmap for Artificial intelligence

  • @namansharma9344
    @namansharma9344 3 года назад

    simple and nice logic sir thankyou so much

  • @e-teslaacademy1031
    @e-teslaacademy1031 2 года назад

    Explanation is great, thanks

  • @gladeon-hb9iu
    @gladeon-hb9iu 7 месяцев назад

    thanku bhai

  • @priyanshi_78
    @priyanshi_78 Год назад

    Sir apka koi app h kya jha app paid course krate h aur interview ki taiyari

  • @trendingshorts8092
    @trendingshorts8092 Год назад

    thank you so much sir

  • @pkhatua7964
    @pkhatua7964 2 года назад

    Great

  • @booksreviews9282
    @booksreviews9282 9 месяцев назад

    sir but this program is only for 3 digit what if we have n digits in a number but like your explanation

  • @arpancs
    @arpancs 2 года назад

    Woww amazing 👍

  • @futureworld1807
    @futureworld1807 3 года назад +1

    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 3 года назад

      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?

  • @AnitaChaudhari-xb9xs
    @AnitaChaudhari-xb9xs 2 месяца назад

    Thankyou

  • @THECOMPETITORGUY
    @THECOMPETITORGUY 8 месяцев назад

    thanks

  • @pavankumarbingi2551
    @pavankumarbingi2551 Год назад

    Hi ,it's working only for for 3digits numbers...

  • @jayvardhandesai6940
    @jayvardhandesai6940 3 года назад

    thanks sir

  • @herokalki
    @herokalki 7 месяцев назад

    kya bath hai😊

  • @NNITIN-v2u
    @NNITIN-v2u 11 месяцев назад

    Thnx sir

  • @rocking_star7880
    @rocking_star7880 Год назад

    Sir, can share code for strong number with range....

  • @ApoorvKeshri-d6j
    @ApoorvKeshri-d6j Год назад +1

    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");
      }
      }

  • @mahesh1simhadri
    @mahesh1simhadri Год назад

    what if I enter a 4 digit number does it still work?

  • @RishabhSingh-sw7uq
    @RishabhSingh-sw7uq 2 года назад +1

    What about 4,5,6....digit number.

  • @sayam964
    @sayam964 3 года назад

    Thanks

  • @gs-qj4tq
    @gs-qj4tq 3 года назад

    nice explanation ,sir.

  • @swethamahapatro09
    @swethamahapatro09 Год назад

    Sir.. 2 is an armstrong number but your code prints that it is not..

  • @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

  • @thecomdeykatta
    @thecomdeykatta 2 года назад

    Armstrong no in between 1 to 500 ka vdo kijiye

  • @chakradharpalavalasa7743
    @chakradharpalavalasa7743 Год назад

    pls do it for any number of digits

  • @royalrajput5368
    @royalrajput5368 3 года назад

    Great 👍

  • @sankar430
    @sankar430 Год назад +1

    Dear sir , from 1to 9 all numbers are armstrong number but here this code is not aplicable for 1 to 9.

  • @manishnayak930
    @manishnayak930 Год назад

    love you bruhhhh

  • @anything-lr4fc
    @anything-lr4fc 6 месяцев назад

    what if i enter 6756 as input,,code crashes, PLEASE do some thinking before coding

  • @abhishekgorshi9822
    @abhishekgorshi9822 2 года назад

    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");
    }
    }



    }
    }

  • @manjunadhamanju1719
    @manjunadhamanju1719 Год назад

    For 4 digit number!?

  • @lokeshwarinandeshwar2628
    @lokeshwarinandeshwar2628 5 месяцев назад

    Sir This only works for 3 digits

  • @prathamesh_Kulkarni
    @prathamesh_Kulkarni Год назад +20

    this logic is valid for only 3 digit numbers

  • @zaheerbagwan1542
    @zaheerbagwan1542 2 месяца назад

    please DSA sikhao Java mein

  • @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

  • @pranjalpandit252
    @pranjalpandit252 2 года назад

    Sir Armstrong 2 digit ka bhi hota hai???

  • @murliengineering6130
    @murliengineering6130 Год назад

    Is we take a 9474 it's not working because that power is 9^4+4^4+7^4+4^4=9474

  • @Giriagroandfashion
    @Giriagroandfashion Год назад

    What if the User Enters 4 digit number

  • @MAX-ym1pm
    @MAX-ym1pm 2 года назад

    My code is applicable to every numbers

  • @karthikhs6054
    @karthikhs6054 Год назад

    Why did you multiply three times, what ur user enter 4 digit number

  • @tamannasarkar3065
    @tamannasarkar3065 11 месяцев назад

    But what if the number is of more than 3 digits??

  • @mohilalkhandait8301
    @mohilalkhandait8301 2 года назад

    Sir python program bhi skate.

  • @havudamusic
    @havudamusic 9 месяцев назад

    "1634 "is also a Amstrong number this code is not working for that input.

  • @kundansagare1834
    @kundansagare1834 Год назад

    Sir, please make a video on Rotating number like that 1234-...4123,3412

    • @vaibhavsahu-e5t
      @vaibhavsahu-e5t Год назад

      while(n>0)
      {
      rev=(rev*10)+ n%10;
      n=n/10;
      }
      System.out.println(rev);

    • @vaibhavsahu-e5t
      @vaibhavsahu-e5t Год назад

      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);

  • @vaibhavsahu-e5t
    @vaibhavsahu-e5t Год назад

    SIR JI 1634 is also armstrong number par yeh us par kaam nhi krega plzz pehle value count karke bnaiye

    • @priyanshubabu7908
      @priyanshubabu7908 2 месяца назад

      Because you declared three number inputs in this, that is why it is not happening