My issue
What is the mistake I have made in this code?
My code
import java.util.Scanner;
class Number {
public static void main(String[] args) {
int N;
System.out.println("Enter an integer value:");
Scanner sc = new Scanner(System.in);
N = sc.nextInt();
System.out.println(N);
// Close the scanner to release resources
sc.close();
}
}
Learning course: Java for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone