Question: function sumNatural(int n) returns intint: total ? 0for counter ? 1 to ntotal ? total + counternextreturn totalend functionWhat does this algorithm do? 1 answer
function sumNatural(int n) returns intint: total ? 0for counter ? 1 to ntotal ? total + counternextreturn totalend functionWhat does this algorithm do? 1 answer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
