 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you how you can print those numbers which are Armstrong and available in array. Before starting, you can note my information, you can follow or subscribe my YouTube channel through this URL youtube.com slash sanjaygupta underscore tech school. You can download my programming app TechMS which is available on Google Play. Now coming on to the topic, here you can see I have implemented a code for you. First header file inclusion, then inside main various variables are declared, then printf will display the message enter elements on console. For loop is repeating scan of statement 10 times so that 10 elements can be stored inside array at different indexes. Now for calculation purpose, again I have implemented a for loop inside this loop. Each element of array will be assigned into n one by one. So first a zero will be assigned into n, then s is initialized with zero. Inside this while loop, I am going to calculate some of cubes of each digit which are available inside n variable. So after calculation of that sum, I am comparing that sum with AO5 because n will become zero after completion of while loop. So I can't use n here. That's why I am using AO5. So AO5 is containing original value inside array and s is containing the sum. So if this sum is equals to AO5, then only number is Armstrong. So I am printing that AO5 on console with the help of this printf. Otherwise nothing will be displayed. So this process will repeat 10 times so that each number which is available inside array can be checked whether it is Armstrong or not. So each number will be assigned into n, then its sum, sorry, then its digits, cubes, sum will be available inside s variable. Then it will be compared with the original value and then number will be displayed if it is Armstrong. So now I am executing this code so that you can check whether it is working properly or not. Sorry, instead of a, I have to use t here because the remainder is assigned into t variable. So it is asking for 10 numbers. So I am entering different numbers. You can see the output 153 is Armstrong and 153 is Armstrong. I have entered 153 twice in this array and rest of the elements are not Armstrong. So you can see the code is working properly. It is printing only those numbers which are Armstrong on console. So this way you can implement this code so that you can identify which numbers are Armstrong available in array and which are not. I have implemented this code for only three digit numbers because I am calculating cubes. If you want to apply this for any number of digits, then you have to change this logic. So I hope you have understood the code, how you can print those numbers which are Armstrong and available in array. If you want to watch more programming related videos, you can follow or subscribe my YouTube channel. That is youtube.com slash sanjaygupta underscore tax school. You can download my programming app TakMS that is available on Google Play. Thank you for watching this video.