#include
int min(int x, int y)
{
return (y < x)? y : x;
}
int main()
{
int a[] = {-5,9,8,-8,-2};
int z = a[0],n=5,i=0,c=a[0];
for(i=1;i
{
c=min(a[i],c+a[+]);
z=min(z,c);
}
print("%d", z);
}
Answers
Answered by
0
Answer:
I don't know I am sorry brother
Similar questions
Math,
1 month ago
English,
1 month ago
Accountancy,
1 month ago
Social Sciences,
2 months ago
Physics,
2 months ago
Physics,
9 months ago
Math,
9 months ago