Answer:
#include <stdio.h>
int main() {
int low, high, x;
int count=0;
printf("Enter low : ");
scanf("%d", &low);
printf("Enter high : ");
scanf("%d", &high);
printf("Enter x : ");
scanf("%d", &x);
for (int i = low; i <= high; i++) {
if (i % x == 0) {
count++;
}
}
printf("Number of multiple of %d between low and high: %d\\", x, count);
return 0;
}
Step-by-step explanation:
In your printf statement, make sure that every %d corresponds to one argument. The first %d displays the first argument, and so on, that explains why you saw 13.