#include<stdio.h> int main(){ int m,n; while(scanf("%d %d",&m,&n)!=EOF){ printf("%d\n",m%n); } }
Double click to view unformatted code.