Write a program for finding whether the given no is Armstrong or not.
Answers
Answered by
2
C Program to Check whether a given Number is Armstrong.
#include <math.h>
int number, sum = 0, rem = 0, cube = 0, temp;
printf ("enter a number");
scanf("%d", &number);
temp = number;
while (number != 0)
rem = number % 10;
#include <math.h>
int number, sum = 0, rem = 0, cube = 0, temp;
printf ("enter a number");
scanf("%d", &number);
temp = number;
while (number != 0)
rem = number % 10;
Similar questions
Math,
6 months ago
Computer Science,
6 months ago
English,
6 months ago
Biology,
1 year ago
Geography,
1 year ago