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