logo

Crowdly

Fill in the correct missing statements in the given function shown below: //...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Fill in the correct missing statements in the given function shown below:

//this function returns the sum of all numbers from 1 to n. Use while loop.

int addNumbers(int n)){

     

 sum+=n;

n--;

 }

return sum;

}

More questions like this

Want instant access to all verified answers on lair.education?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!