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;
for(int i=0;i<=t;i++)
{
int X,P,Q;
cin>>P>>Q>>X;
cout<<X*(P-Q)<<endl;
}
return 0;
}
Learning course: Solve Programming problems using C++
Problem Link: CodeChef: Practical coding for everyone