#include <stdio.h>
int main(void)
{
printf("This program computes moduli.\n");
int second;
int first;
printf("Enter an integer to serve as the second operand: ");
scanf("%d", &second);
printf("Now enter the first operand: ");
scanf("%d", &first);
while (first > 0) {
printf("%d %% %d is %d\n", first, second,first % second);
printf("Enter next number for first operand (<= 0 to quit): ");
scanf("%d", &first);
}
printf("Done\n");
}