We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
int n , sum=0;
Scanner sc = new Scanner(System.in);
System.out.println("enter no of input for array");
n = sc.nextInt();
int a[]= new int [n];
System.out.println("enter all the elements");
for(int i=0;i
could you please help me out?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Simple Array Sum
You are viewing a single comment's thread. Return to all comments →
int n , sum=0; Scanner sc = new Scanner(System.in); System.out.println("enter no of input for array"); n = sc.nextInt(); int a[]= new int [n]; System.out.println("enter all the elements"); for(int i=0;i