Tutorial of Java Program for Armstrong Number/ ArmNum
Java Program for finding if a number is Armstrong number or not. Eg. 153
Time-Code:
0:00 : Introduction
0:37 : Armstrong Number using Iteration
6:14 : Armstrong Number using Recursion
10:00 : Running the program to check output of Armnum
Keep in Mind:
1. convert Math.pow(A,B) to (int)
2. last digit: n%10.
3. except the last digit: n/10
4. Recursion occurs if you keep calling the method.
5. l= Integer. toString(n).length(); to find length of int n
#java #armstrong #armnum
Program link : (3 ways) https://drive.google.com/drive/folders/1-20sgU3Asv-CtEd8y2Fg1zcJ8uXhPVd2?usp=sharing
If something helped you, LIKE , SUBSCRIBE & SHARE
https://www.youtube.com/c/theeducationvalley?sub_confirmation=1
Software: Adobe, Obs
Support/Connect/Friend me: @thecgr
Download
0 formats
No download links available.
Armstrong Number Using Iteration + Recursion | ISC Java Program Blue J | NatokHD