import java.util.Scanner; public class Problem_2 { public static void main(String[]args) { int n; Scanner sc=new Scanner(System.in); System.out.println("enter your array size"); n=sc.nextInt(); int []a=new int[n]; for(int i=0;i