+ 2
Logic goes as follows :- int[] sum=new int[n]; for(i=0;i<n;i++) sum[i]=a[i]+b[i]; where n is the length of either of a or b array
11th Jan 2018, 4:41 PM
Abhishek Tandon
Abhishek Tandon - avatar