Computer Science, asked by brijitgeejo, 2 months ago

write the output of a program in java to enter a number and check whether the number is an amstrong number or not?

Answers

Answered by koshalkulena
0

Answer:

Java Program to Check If a Given Number is ArmStrong Number

public class ArmStrong.

int n, count = 0, a, b, c, sum = 0;

Scanner s = new Scanner(System.

System. out. print("Enter any integer you want to check:");

n = s. nextInt();

a = n;

c = n;

while(a > 0)

Similar questions