Write a java program to input three digit number and check whether it is an Armstrong no. or not without using loop(only nested if)
Answers
Answered by
1
Armstrong Number Java Program
import java.util.Scanner;
import java.lang.Math;
public class ArmstsrongNumberExample.
{
//function to check if the number is Armstrong or not.
static boolean isArmstrong(int n)
{
int temp, digits=0, last=0, sum=0;
Answered by
0
Answer:
Explanation:
Refers to the attachment.
Answer given below here.
Attachments:
Similar questions