armstrong number in java
Java
int c=0,a,temp;
int n=153;//It is the number to check armstrong
temp=n;
while(n>0)
{
a=n%10;
n=n/10;
c=c+(a*a*a);
}
if(temp==c)
System.out.println("armstrong number");
else
System.out.println("Not armstrong number");
Also in Java:
- Title
- non primitive data types in java
- Category
- Java
- Title
- java lerp
- Category
- Java
- Title
- ndroid.support.v4.content.FileProvider
- Category
- Java
- Title
- how to find substring in java
- Category
- Java
- Title
- java localdate subtract two dates
- Category
- Java
- Title
- check if map contains key java
- Category
- Java
- Title
- time conversion solution
- Category
- Java
- Title
- phoneword converter
- Category
- Java
- Title
- protect java
- Category
- Java
- Title
- java map declaration
- Category
- Java
- Title
- java how to make a string lowercase
- Category
- Java
- Title
- how to open a folder in java swing project
- Category
- Java
- Title
- get sha key android
- Category
- Java
- Title
- caesar cipher java
- Category
- Java
- Title
- java optional to collection
- Category
- Java
- Title
- java packages example
- Category
- Java
- Title
- catch array out of bounds exception java
- Category
- Java
- Title
- java exponencial
- Category
- Java
- Title
- how to print an array in java
- Category
- Java
- Title
- Java.awt graphics tutorial
- Category
- Java
- Title
- processing string to int
- Category
- Java
- Title
- int to binary string java
- Category
- Java
- Title
- java sort method
- Category
- Java
- Title
- how to add a number to an array in java
- Category
- Java
- Title
- java script to detect the crome browser
- Category
- Java
- Title
- run java program maven
- Category
- Java
- Title
- how to get all the names of the files in a folder in java?
- Category
- Java
- Title
- StringBuilder java pop back
- Category
- Java
- Title
- how to detect if someone clicks on a jpanel in java
- Category
- Java
- Title
- convert array to list java
- Category
- Java
- Title
- entre clavier java
- Category
- Java
- Title
- how to write sensor data into file android studio
- Category
- Java
- Title
- create java windows application
- Category
- Java
- Title
- eliminar fila jtable java
- Category
- Java
- Title
- java convert char to int
- Category
- Java
- Title
- how to take space separated input in java
- Category
- Java
- Title
- multiplication program java
- Category
- Java
- Title
- set password visible in android
- Category
- Java
- Title
- getindexrequest elasticsearch
- Category
- Java
- Title
- set preference value android
- Category
- Java
- Title
- java switch multiple values
- Category
- Java
- Title
- java http client eviction
- Category
- Java
- Title
- import java.util.hashset
- Category
- Java
- Title
- spark write partitionby
- Category
- Java
- Title
- java singleton
- Category
- Java
- Title
- convert date to calendar java
- Category
- Java
- Title
- find the day of the week Calendar class in java
- Category
- Java
- Title
- import collections in java
- Category
- Java
- Title
- array in java stack overflow
- Category
- Java
- Title
- java script find screen size of device
- Category
- Java
- Title
- java stream sort Collator
- Category
- Java
- Title
- java create folder
- Category
- Java
- Title
- android how to know when snackbar is done
- Category
- Java
- Title
- show menuitem when menu hovered javafx
- Category
- Java
- Title
- how to create dynamic string array in java
- Category
- Java
- Title
- get cursor position in textarea java
- Category
- Java
- Title
- sum of arraylist java 8
- Category
- Java
- Title
- remove first character from string
- Category
- Java
- Title
- how to iterate hashmap in java
- Category
- Java
- Title
- how to import an arraylist in java
- Category
- Java
- Title
- java convert edittext to double
- Category
- Java
- Title
- not equal to java
- Category
- Java
- Title
- binary to octal conversion java program
- Category
- Java
- Title
- android how to switch between activities
- Category
- Java
- Title
- How do you count characters in a string array in Java?
- Category
- Java
- Title
- print in one line in java
- Category
- Java
- Title
- abstraction in java
- Category
- Java
- Title
- how to print ascii value in java
- Category
- Java
- Title
- processing sound library
- Category
- Java
- Title
- java loop through string
- Category
- Java
- Title
- java stack empty
- Category
- Java
- Title
- string length in java
- Category
- Java
- Title
- system.out.println shortcut
- Category
- Java
- Title
- java 11 initialize map
- Category
- Java
- Title
- java how to convert string to int
- Category
- Java
- Title
- java append to array
- Category
- Java
- Title
- how to reverse a list in java
- Category
- Java
- Title
- check leap year in java
- Category
- Java
- Title
- even or odd in java
- Category
- Java
- Title
- math max java
- Category
- Java
- Title
- java how to read a text file
- Category
- Java
- Title
- How to create a 2d array in java
- Category
- Java
- Title
- coding with WDSL spring
- Category
- Java
- Title
- how to make a copy of an array java
- Category
- Java
- Title
- online money transfer andhra bank
- Category
- Java
- Title
- make class in java
- Category
- Java
- Title
- how to append to an array in java
- Category
- Java
- Title
- java set value of arraylist
- Category
- Java
- Title
- java next permutation
- Category
- Java
- Title
- converter int array para string java
- Category
- Java
- Title
- substring java
- Category
- Java
- Title
- java string to uuid
- Category
- Java
- Title
- java list contains object with property
- Category
- Java
- Title
- java hashmap example
- Category
- Java
- Title
- change button color java swing
- Category
- Java
- Title
- java method overriding
- Category
- Java
- Title
- java length of matrix
- Category
- Java
- Title
- get current day java
- Category
- Java
- Title
- arrays.aslist.add
- Category
- Java
- Title
- waht does&& mean in java
- Category
- Java