My issue
My code
// Update the code below to solve the problem
#include <iostream>
#include <string>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int a,b;
cin>>a>>b;
if(a>b){
cout<<7-a<<endl;
}else if(b>a){
cout<<7-b<<endl;
}else{
cout<<7-0<<endl;
}
}
return 0;
}
Learning course: Solve Programming problems using C++
Problem Link: CodeChef: Practical coding for everyone