Amstrong Between Two Interval
Amstrong Between Two Interval
Practice Assignment 22
Solution:
#include <math.h>
#include <stdio.h>
int main() {
int low, high, number, originalNumber, rem, count = 0;
double result = 0.0;
printf("Enter two numbers(intervals): ");
scanf("%d %d", &low, &high);
printf("Armstrong numbers between %d and %d are: ", low, high);
high += low;
low = high - low;
high -= low;
}
originalNumber = number;
return 0;
}