Computer Science, asked by smily710, 2 months ago

write a java program that prints Armstrong number using recursion.

please send answer fast..it's urgent​

Attachments:

Answers

Answered by ss6482736
1

Answer:

1. int x; int findArmstrong(int n,int a) { if(n!=0)

2. { x=n%10; a=a+(x*x*x); n/=10 ;

3. return findArmstrong(n,a); } return a; }

4. public static void main(String[] arg) { ArmstrongRecursion A=new ArmstrongRecursion(); int arm;

5. System. out. println("Armstrong numbers between 1 to 1000"); ...

6. if(arm==num) System. out.

Similar questions
Math, 1 month ago