Menu
Coddy logo textTech

14. Check Armstrong Range

Lesson 15 of 31 in Coddy's 30 Days of Logic Building in C++ course.

challenge icon

Challenge

Medium

Write a function to find Armstrong numbers in a given range.

  • Input: 100 to 1000
  • Output: [153, 370, 371, 407]

Try it yourself

#include <vector>
using namespace std;

vector<int> findArmstrongRange(int start, int end) {
    // Write code here
}

All lessons in 30 Days of Logic Building in C++