Computer Science, asked by dhruvgupta9371, 6 months ago

write a program to find the number is amstrong or not ? (write tthe program using java approach)​

Answers

Answered by siddhanth55
0

Explanation:

class ArmstrongExample{

public static void main(String[] args) {

int c=0,a,temp;

int n=153;//It is the number to check armstrong.

temp=n;

while(n>0)

{

a=n%10;

Similar questions