0

How to find Armstrong number using FOR loop

I want to use FOR loop to find out weather it is Armstrong number or not

6th Jul 2020, 10:08 AM
harshit
5 Answers
+ 6
Show your attempt harshit
6th Jul 2020, 10:22 AM
Nilesh
Nilesh - avatar
+ 3
Can you tell me which Armstrong number you are asking.
6th Jul 2020, 10:10 AM
Arctic Fox
Arctic Fox - avatar
+ 2
harshit Check out this assignment and learn from the submissions https://www.sololearn.com/learn/4708/?ref=app And this code below found by searching the Code Playground. Next time you need code inspiration search the Code Playground 👍 https://code.sololearn.com/cEe0vXQAhB8F/?ref=app
6th Jul 2020, 10:53 AM
Ipang
0
Any Armstrong number like 153 is true for Armstrong number so how to check it with FOR loop?
6th Jul 2020, 10:11 AM
harshit
0
Take out number of individual digit places and then cube it and then add.use mod by 10,100,1000,or more and then div by 10 or 100 to get digit at that place and proceed.
6th Jul 2020, 5:05 PM
shubham kumar
shubham kumar - avatar