PROGRAM TO VERIFY ARMSTRONG NUMBER....FILL THE BLANKS.
#include <stdio.h>
void main() {
int number, temp, remainder, i, power, digits = 0, sum = 0;
printf("Enter a number : ");
scanf("%d", &number);
temp = number;
while (..................) { // complete the condition to iterate the Loop
digits=............; // increment the digits
temp=..............; //calculate the temp value
temp = number;
while (...............) { // complete the condition to iterate the Loop
remainder = number % 10;
i = 1;
power = 1;
while (................) // find the powers of each digit
power=..........................;// calculate power value
i.............; // increment i value
}
sum =..............; // calculate sum value
number=..................; // calculate number value
if (................) {
printf("The given number %d is an armstrong number\n", temp);
}else {
printf("The given number %d is not an armstrong number\n", temp);}
}
}