Enter a anumber 55 55 Number is not an ArmStrong.
package com.streamapi; import java.util.Scanner; public class ArmStrongNumber { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); System.out.println("Enter a anumber"); int number = scanner.nextInt(); boolean ArmStrong = ArmStrong(number); if(ArmStrong) { System.out.println(number +" Number is an ArmStrong."); } else { System.out.println(number +" Number is not an ArmStrong."); } } private static boolean ArmStrong(int number) { return false; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)