Solution:
public class SumOfArray {
private int[] a;
private int n;
private int result;
public int sumOfArray(int[] a,int n) {
this.a = a;//Max size is 20
n = a.length;
if (n == 0) // base case
return a[n];
else
return a[n] + sumOfArray(a, n-1);
return result;
} // End SumOfArray method
} // End SumOfArray Class
why dont u just type it? sorry >.<
do you talk English:) could you translate
Answer:
1101001 is binary 105
128 in binary is 10000000