#include<iostream> using namespace std; int main(void){ int n,m; while(cin>>n>>m){ cout<<n%m<<endl; } }
Double click to view unformatted code.