Hi i am a beginner to c++ and need some help in converting the pseudo code into an actual program. If anyone can please help it would be greatly appreciated.
here is the code
input = s1+ ..... + sn
output = max
max_sum1(s,n)
{
//sumji is the sumj + ... si
for i=1 to n
{
for j=1 to i-1
sumji = sumj.i-1 + si
sumii = si
}
//step through sumji and find the maximum
max=0;
for i=1 to n
for j=1 to i
if(sumji>max)
max=sumji
return max;
}