My issue
why am i facing runtime eroor in this code
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
int t,n,k;
cin>>t;
for(int i=0;i<t;i++){
cin>>n>>k;
cout<<n%k<<endl;
}
}
Learning course: Level up from 1* to 2*
Problem Link: Smallest Possible Whole Number Practice Problem in Level up from 1* to 2* - CodeChef