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