write a program to find the number is amstrong or not ? (write tthe program using java approach)
Answers
Answered by
0
Explanation:
class ArmstrongExample{
public static void main(String[] args) {
int c=0,a,temp;
int n=153;//It is the number to check armstrong.
temp=n;
while(n>0)
{
a=n%10;
Similar questions
Math,
2 months ago
Environmental Sciences,
2 months ago
English,
2 months ago
Computer Science,
6 months ago
Social Sciences,
6 months ago
Science,
9 months ago
Math,
9 months ago