Code: Select all
Scanner sc= new Scanner(System.in);
System.out.println("enter no of digits");
int n=sc.nextInt();
int var[]=new int[n];
for(int i=0;i
Code: Select all
Scanner sc= new Scanner(System.in);
System.out.println("enter no of digits");
int n=sc.nextInt();
int var[]=new int[n];
for(int i=0;i