My issue
Code is asked for reprinting the same number but answer is showing for reversing number
My code
import java.util.Scanner;
class Codechef {
public static void main(String[] args) {
// Create a Scanner object to read input from the user
Scanner scanner = new Scanner(System.in);
// Prompt the user to enter a number
System.out.print("Enter a number: ");
// Read the number entered by the user
int number = scanner.nextInt();
// Print the number to the output
System.out.println("You entered: " + number);
// Close the scanner to release resources
scanner.close();
}
}
Learning course: Practice Java
Problem Link: CodeChef: Practical coding for everyone