Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Armstrong no
//'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[]) { int a = 153; int x = a; int count=0; while(x!=0){ x = x/10; count++; } x=a; int arm = 0; while(x!=0){ int temp = x%10; x = x/10; arm += (int)Math.pow(temp,count); } } }
run
|
edit
|
history
|
help
0
Basic
ArrayOperation
Write a program to sort the odd elements descending order and even elements in ascending order
2
Escaping Literals (Table of records)
Memory cleanup
4.b
How many Squares in Rectangle
vsecodertest2
Rakibul Haque