Computer the sum and product of an arbitrary array of integers (hard code the array).
int sum= 0; int prod= 1 int[] arg= { 1,2,3,4,5 }; for (int i: arg) { sum+= i; prod*= i; }