Chef is eagerly waiting for a piece of information. His secret agent told him that this information

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 K,X;
   cin>>K>>X;
   cout<<7-X<<endl;
  }
 return 0;
}

Learning course: Solve Programming problems using C++
Problem Link: CodeChef: Practical coding for everyone

@ruby_stacy
print K*7-X

1 Like