Computer Science, asked by Reshmarameshs, 5 months ago

How many times does the while loop get executed if the following function is called as f(140,15)?
f(m,n) {
ans = 1;
while (m >= 0) {
ans = ans * (ans + 1);
m = m-n;
}
return(ans)
}

Answers

Answered by smalikajm
0

Answer:

ok kjsjsjajhshahsh

Explanation:

Michaela have been having a meeting held by various jhut hai kya hai kya hua buy bhej in a new beginning to nanny MGM my CV CBM and I will send it back to me know what you are not going anywhere else that I can do to help me with any of.

.

.

.

.

.

.

.

.

Answered by KajalBarad
0

Function is called as f(140,15)

A function is a piece of code that is frequently described by the place it occupies in a larger code structure.

A function, specifically, is a piece of code that processes a variety of inputs, many of which are variables, and generates tangible outcomes by altering the values of variables or performing actual operations based on the inputs

Loop will execute for -> 140 -15

as m returns m - n

-> 125

Loop -

A loop is a set of instructions that are repeatedly carried out until a specific condition is met in computer programming.

Typically, a certain action is taken, such as receiving and modifying a piece of data, and then a condition is verified, such as determining whether a counter has reached a predetermined value.

#SPJ2

Similar questions