My issue
sol
My code
// Step 1: Read and understand the problem statement and sample test cases
// Click on 'Next' once you are ready to proceed.
Learning course: Solve Programming problems using C++
Problem Link: Problem (Flip cards) - Read the problem statement Practice Problem in Solve Programming problems using C++ - CodeChef
@nandinia604
refer the following code
// Solution as follows
#include <iostream>
#include <string>
using namespace std;
int main()
{
int N = 10;
int X = 3;
cout<<"The number of cards we need to flip is 3"<<endl;
N = 10;
X = 7;
cout<<"The number of cards we need to flip is 3"<<endl;
N = 10;
X = 4;
cout<<"The number of cards we need to flip is 4"<<endl;
N = 10;
X = 6;
cout<<"The number of cards we need to flip is 4"<<endl;
return 0;
}