My issue
solve this problem in java
My code
import java.util.Scanner;
public class CodeChef {
public static void main(String[] args) {
// Create a Scanner object to read input
Scanner scanner = new Scanner(System.in);
// Prompt the user for input
System.out.println("Input");
// Read the integer from the user
int N = scanner.nextInt();
// Close the scanner
scanner.close();
// Print the input number
System.out.println("Output");
System.out.println(N);
}
}
Learning course: Practice Java
Problem Link: CodeChef: Practical coding for everyone