My issue
My code
// Update the '_' below to solve this problem
import java.util.Scanner;
class Codechef
{
public static void main (String[] args)
{
int n = 10;
int x = 3;
System.out.println("The number of cards we need to flip is 7");
n = 10;
x = 7;
System.out.println("The number of cards we need to flip is 3");
n = 10;
x = 4;
System.out.println("The number of cards we need to flip is 6");
n = 10;
x = 6;
System.out.println("The number of cards we need to flip is 4");
}
}
Learning course: Java for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone