Làm thế nào để bạn tìm thấy số armstrong giữa hai khoảng thời gian trong python?

Số Armstrong giữa hai số nguyên

Cải thiện bài viết

Lưu bài viết

Thích bài viết

  • Độ khó. Cơ bản
  • Cập nhật lần cuối. 13 tháng 6 năm 2022

  • Đọc
  • Bàn luận
  • khóa học
  • Luyện tập
  • Băng hình
  • Cải thiện bài viết

    Lưu bài viết

    Số nguyên dương có các chữ số a, b, c, d… được gọi là số Armstrong bậc n nếu thỏa mãn điều kiện sau.  
     

    abcd.. = an + bn + cn + dn +...

     

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.

    ví dụ.  
     

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371

     

    Khuyến khích. Vui lòng thử cách tiếp cận của bạn trên {IDE} trước, trước khi chuyển sang giải pháp
     

    Cách tiếp cận được thực hiện dưới đây rất đơn giản. Chúng tôi duyệt qua tất cả các số trong phạm vi nhất định. Đối với mỗi số, trước tiên chúng tôi đếm số chữ số trong đó. Đặt số chữ số trong số hiện tại là n. Chúng ta tìm tổng lũy ​​thừa thứ n của tất cả các chữ số. Nếu tổng bằng i, chúng tôi in số.  
     

    C++




    // CPP program to find Armstrong numbers in a range

    #include

    using namespace std;

     

    // Prints Armstrong Numbers in given range

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    0
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    1
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    3
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    5

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    6

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    8
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    9
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    1

     

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    3

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    6

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    9

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    1
    153 370 371
    2

    153 370 371
    3
    153 370 371
    4

    153 370 371
    3
    153 370 371
    6

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    8

     

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2// CPP program to find Armstrong numbers in a range0

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2// CPP program to find Armstrong numbers in a range2

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2 // CPP program to find Armstrong numbers in a range5

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    6

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    1
    153 370 371
    2

    153 370 371
    3
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2 #include 3

    153 370 371
    3_______455_______5#include 6#include 7

    153 370 371
    3
    153 370 371
    4

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    8

     

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2using3

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2using5

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2using7 using8

    153 370 371
    3namespace0namespace1namespace2

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 370 371
    8

    153 370 371
    8

     

    namespace6

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2 namespace8

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    6

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2 std;2

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2 std;5

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7std;7

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7std;9// Prints Armstrong Numbers in given range0// Prints Armstrong Numbers in given range1

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7// Prints Armstrong Numbers in given range3 // Prints Armstrong Numbers in given range4

    153 370 371
    8

    Java




    // Prints Armstrong Numbers in given range6

    // Prints Armstrong Numbers in given range7

    // Prints Armstrong Numbers in given range8 // Prints Armstrong Numbers in given range9

    // Prints Armstrong Numbers in given range8

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    01

     

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    02
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    03

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7// Prints Armstrong Numbers in given range

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    08
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    0
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    1
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    3
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    5

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    6

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    8
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    9
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    21
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    22
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    23

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    24

    153 370 371
    3_______2_______3

    153 370 371
    3_______1_______2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    6

    153 370 371
    3
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    32
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    33// Prints Armstrong Numbers in given range1

    153 370 371
    3
    153 370 371
    1
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    37
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    33_______1_______39

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    40_______1_______41
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    42// Prints Armstrong Numbers in given range1

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    40_______24_______6

    153 370 371
    3
    153 370 371
    8

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    24

    153 370 371
    3____454_______0

    153 370 371
    3____454_______2

    153 370 371
    3
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    55
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    33_______459_______1

    153 370 371
    3_______2_______6

    153 370 371
    3
    153 370 371
    1
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    37
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    33_______1_______39

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    40_______1_______2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    67
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    42// Prints Armstrong Numbers in given range1

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    40_______1_______71

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    40_______1_______41
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    42// Prints Armstrong Numbers in given range1

    153 370 371
    3
    153 370 371
    8

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    24

    153 370 371
    3_______1_______80

    153 370 371
    3
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    82

    153 370 371
    3____454_______2

    153 370 371
    3____456_______7 using8

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    40_______1_______89namespace1
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    91

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    8

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 370 371
    8

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    24

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7namespace6

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    00
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    08
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    0
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    03

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    6

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    08
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    09// Prints Armstrong Numbers in given range1

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    13
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    14// Prints Armstrong Numbers in given range1

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2std;7

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    19

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 370 371
    8

    153 370 371
    8

     

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    23

    con trăn




    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    24

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    25

    // Prints Armstrong Numbers in given range8

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    27

     

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    28

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    29
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    30

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    8
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    34_______2_______35
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    36
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    37
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    38
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    22_______2_______40

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    43

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    45_______2_______46
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    34

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    49
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    46
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    33

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    1
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    54_______2_______46
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    33
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    57

    153 370 371
    3
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    45_______2_______46
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    45
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    62
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    42

    153 370 371
    3
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    49
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    46
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    49
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    38
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    22

    153 370 371
    3

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    72

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    74_______2_______46
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    33

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    45_______2_______46
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    34

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    1
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    54_______2_______46
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    33
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    57

    153 370 371
    3
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    88
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    46
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    45_______2_______91
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    42

    153 370 371
    3
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    74
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    46
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    74
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    38
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    98#include 6
    153 370 371
    00

    153 370 371
    3
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    45_______2_______46
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    45
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    62
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    42

    153 370 371
    3

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    09

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    11

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2using7
    153 370 371
    14_______2_______46
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    46
    153 370 371
    17

    153 370 371
    3
    153 370 371
    19
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    9
    153 370 371
    21
    153 370 371
    22
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    38 namespace1
    153 370 371
    25

     

    153 370 371
    26

    153 370 371
    27_______2_______46
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    09

    153 370 371
    30
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    46
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    14

    153 370 371
    33

    153 370 371
    19
    153 370 371
    35

     

    153 370 371
    36

    C#




    153 370 371
    37

    // Prints Armstrong Numbers in given range7

    using

    153 370 371
    40

     

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    02
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    03

     

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7// Prints Armstrong Numbers in given range

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    08
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    0
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    1
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    3
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    5

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    6

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    8
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    9
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    153 370 371
    59

     

    153 370 371
    3_______2_______3

    153 370 371
    3_______1_______2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    6

    153 370 371
    3_______1_______2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    9

    153 370 371
    3
    153 370 371
    1
    153 370 371
    2

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    40_______24_______4

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    40_______24_______6

    153 370 371
    3
    153 370 371
    8

     

    153 370 371
    3____454_______0

    153 370 371
    3____454_______2

    153 370 371
    3
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2 // CPP program to find Armstrong numbers in a range5

    153 370 371
    3_______2_______6

    153 370 371
    3
    153 370 371
    1
    153 370 371
    2

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    40_______1_______2 #include 3

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    40_______24_______93
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2
    153 370 371
    95

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    40_______24_______4

    153 370 371
    3
    153 370 371
    8

     

    153 370 371
    3_______1_______80

    153 370 371
    3
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    82

    153 370 371
    3____454_______2

    153 370 371
    3____456_______7 using8

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    40_______454_______10namespace1// CPP program to find Armstrong numbers in a range12

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    8

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 370 371
    8

     

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7namespace6

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    00
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    08
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    0 // CPP program to find Armstrong numbers in a range23

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    6

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2 std;2

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    2 std;5

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2std;7

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2// CPP program to find Armstrong numbers in a range35

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 370 371
    8

    153 370 371
    8

     

    // CPP program to find Armstrong numbers in a range39

    PHP




    // CPP program to find Armstrong numbers in a range40

    // CPP program to find Armstrong numbers in a range41

    // CPP program to find Armstrong numbers in a range42

    // CPP program to find Armstrong numbers in a range43

     

    // CPP program to find Armstrong numbers in a range44

    // CPP program to find Armstrong numbers in a range45

    // CPP program to find Armstrong numbers in a range46

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    1// CPP program to find Armstrong numbers in a range48// CPP program to find Armstrong numbers in a range49// CPP program to find Armstrong numbers in a range50// CPP program to find Armstrong numbers in a range51

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    6

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    8
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    9// CPP program to find Armstrong numbers in a range56
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    46// CPP program to find Armstrong numbers in a range48 // CPP program to find Armstrong numbers in a range59

    // CPP program to find Armstrong numbers in a range60// CPP program to find Armstrong numbers in a range56 // CPP program to find Armstrong numbers in a range62// CPP program to find Armstrong numbers in a range50// CPP program to find Armstrong numbers in a range64// CPP program to find Armstrong numbers in a range56// CPP program to find Armstrong numbers in a range51

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    6

     

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2// CPP program to find Armstrong numbers in a range70

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2// CPP program to find Armstrong numbers in a range72

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2// CPP program to find Armstrong numbers in a range74
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    46// CPP program to find Armstrong numbers in a range56// Prints Armstrong Numbers in given range1

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2// CPP program to find Armstrong numbers in a range79 // CPP program to find Armstrong numbers in a range80

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    1
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    9// CPP program to find Armstrong numbers in a range74 // CPP program to find Armstrong numbers in a range85

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    6

    153 370 371
    3// CPP program to find Armstrong numbers in a range74 // CPP program to find Armstrong numbers in a range90// CPP program to find Armstrong numbers in a range74 // CPP program to find Armstrong numbers in a range92

    153 370 371
    3// CPP program to find Armstrong numbers in a range94// CPP program to find Armstrong numbers in a range79// Prints Armstrong Numbers in given range1

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    8

     

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2#include 00

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2#include 02

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2#include 04 // CPP program to find Armstrong numbers in a range80

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2// CPP program to find Armstrong numbers in a range74
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    46// CPP program to find Armstrong numbers in a range56// Prints Armstrong Numbers in given range1

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    1
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    9// CPP program to find Armstrong numbers in a range74 // CPP program to find Armstrong numbers in a range85

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    6

    153 370 371
    3#include 19
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    46// CPP program to find Armstrong numbers in a range74 #include 22

    153 370 371
    3#include 04 #include 25#include 19// CPP program to find Armstrong numbers in a range49// CPP program to find Armstrong numbers in a range79#include 29

    153 370 371
    3// CPP program to find Armstrong numbers in a range74 // CPP program to find Armstrong numbers in a range90// CPP program to find Armstrong numbers in a range74 // CPP program to find Armstrong numbers in a range92

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    8

     

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2#include 38

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2#include 40

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2#include 42

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2using7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    9#include 04 #include 47// CPP program to find Armstrong numbers in a range56// CPP program to find Armstrong numbers in a range51

    153 370 371
    3#include 51 // CPP program to find Armstrong numbers in a range56 #include 53namespace1namespace2

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 370 371
    8

    153 370 371
    8

     

    namespace6

    #include 60 #include 61

    #include 62 #include 63

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    1#include 60// CPP program to find Armstrong numbers in a range49#include 62// CPP program to find Armstrong numbers in a range12

     

    #include 69

    #include 70

    Javascript




    #include 71

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7#include 73

    // CPP program to find Armstrong numbers in a range42

    // CPP program to find Armstrong numbers in a range43

    #include 76

    // CPP program to find Armstrong numbers in a range44

    // CPP program to find Armstrong numbers in a range45

    // CPP program to find Armstrong numbers in a range46 #include 80

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    6

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    8 #include 84

    // CPP program to find Armstrong numbers in a range60#include 86

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    6

    #include 76

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2// CPP program to find Armstrong numbers in a range70

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2// CPP program to find Armstrong numbers in a range72

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2#include 95

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2#include 97

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    1 using00

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    6

    153 370 371
    3____456_______04

    153 370 371
    3
    153 370 371
    6

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    8

    #include 76

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2#include 00

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2#include 02

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2using15

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    6

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    1 using00

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    6

    153 370 371
    3____456_______24

    153 370 371
    3____456_______26

    153 370 371
    3____456_______04

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2
    153 370 371
    8

    #include 76

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2#include 38

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2#include 40

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2#include 42

    Input : 100 400
    Output :153 370 371
    Explanation : 100 and 400 are given 
    two integers.[interval]
      153 = 1*1*1 + 5*5*5 + 3*3*3 
          = 1 + 125 + 27
          =  153  
      370 = 3*3*3 + 7*7*7 + 0
          = 27 + 343 
          = 370
      371 = 3*3*3 + 7*7*7 + 1*1*1
          = 27 + 343 +1
          = 371
    2using7 using8

    153 370 371
    3_______456_______42____457_______1using44

    153 = 1*1*1 + 5*5*5 + 3*3*3  
        =  1 + 125 + 27
        =  153        
    Therefore, 153 is an Armstrong number.
    7
    153 370 371
    8

    153 370 371
    8

    #include 76

    namespace6

    using50

    using51

    std;7

    #include 76

    using54

    using55

    đầu ra.  
     

    153 370 371

    Thời gian phức tạp. O[n*logn], n là phạm vi
    Không gian phụ trợ. O[1], vì chúng tôi không sử dụng thêm dung lượng

    Bài viết này được đóng góp bởi Aditya Ranjan. Nếu bạn thích GeeksforGeeks và muốn đóng góp, bạn cũng có thể viết một bài báo bằng cách sử dụng write. chuyên viên máy tính. org hoặc gửi bài viết của bạn tới review-team@geeksforgeeks. tổ chức. Xem bài viết của bạn xuất hiện trên trang chính của GeeksforGeeks và trợ giúp các Geeks khác
    Vui lòng viết bình luận nếu bạn thấy bất cứ điều gì không chính xác hoặc bạn muốn chia sẻ thêm thông tin về chủ đề thảo luận ở trên
     


    Ghi chú cá nhân của tôi arrow_drop_up

    Tiết kiệm

    Vui lòng Đăng nhập để nhận xét.

    Làm cách nào để in số Armstrong giữa hai khoảng thời gian trong python?

    Chương trình Python tìm số Armstrong giữa một khoảng thời gian .
    Lower = int[input["Nhập phạm vi thấp hơn. "]]
    upper = int[input["Nhập phạm vi trên. "]]
    cho số trong phạm vi [dưới, trên + 1]
    tổng = 0
    nhiệt độ = số
    trong khi nhiệt độ> 0
    chữ số = tạm thời% 10
    tổng += chữ số ** 3

    Logic của số Armstrong trong python là gì?

    Trong trường hợp số Armstrong có 3 chữ số, tổng lập phương của mỗi chữ số bằng chính số đó . Ví dụ. 153 = 1*1*1 + 5*5*5 + 3*3*3 // 153 là số Armstrong.

    Công thức cho số Armstrong là gì?

    = pow [a, n] + pow [b, n] + pow [c, n] + pow [d, n] + pow [e, n] + . 0, 1, 153, 370, 371, 1634, v.v. 27 + 343 + 0 = 370, tức là bằng số đã cho; . 1 + 1296 + 81 + 256 = 1634, tức là bằng số đã cho; . ……… For example : 0, 1, 153, 370, 371, 1634 etc. 27 + 343 + 0 = 370, which is equal to the given number; hence it is an Armstrong number. 1 + 1296 + 81 + 256 = 1634, which is equal to the given number; hence it is an Armstrong number.

    Có bao nhiêu số Armstrong trong khoảng từ 1 đến 10000?

    Nhập số đầu tiên. 1 Nhập số thứ hai. 10000 số Armstrong nằm trong khoảng từ 1 đến 10000 là. 1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407, 1634, 8208, 9474 , .

    Chủ Đề