My issue
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--){
int n,s;
cin>>n>>s;
if(n>=s) cout<<s<<endl;
else{
cout<<abs(n-s)<<endl;
}
}
return 0;
}
Problem Link: CodeChef: Practical coding for everyone
why the else part not working properly