Code:
import java.util.*; class Palindrome { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("enter the number: "); int no = scanner.nextInt(); int[] num = new num[no]; for(int i=0;i<=no;i++) { System.out.println("enter the numbers: "); num[i]=scanner.nextInt(); } } }
Comment