c语言较简单哦
#include <stdio.h>
int main ()
{
int a,b,c;
scanf("%d %d",&a,&b);
c=a%b;
printf("%d",c);
}