0
Max sum in an array
Take an array.We need to calculate the maximum sum.Please help me if anyone Know the code
5 ответов
+ 1
try yourself first please and do share your query if you get stuck
0
what language
0
c
0
int arr[8] = {1,2,3,4,5,6,7,8}
int arr_sum = 0;
for (int i = 0; i < arr[i]; i++) arr_sum += arr[i];
printf("sum of array is %d\n", arr_sum);
0
tq