Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
jsis
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int num; System.out.println("enter the value"); num=sc.nextInt(); int temp= num; int sum= 0; System.out.println("enter the value"); while(num>0) { int r= num%10; sum+= r*r*r; num= num/10; } System.out.println(sum); if (temp==sum) { System.out.println("The number is Armstrong number"); } else { System.out.println("The number is not armstrong"); } } }
run
|
edit
|
history
|
help
0
string reverse program without arry in java
1st
2(B)
mostrar pam
Most views runner!
Municipiu_Problema_2_Palindrome
Геттеры и сеттеры для класса Dog
// Java Coding Challenge - 06: Print out Fibonacci numbers 0 - 93
OBF-7
Leetcode 937. Reorder Log Files🇮🇳🇮🇳🇮🇳