Computer Science, asked by alligation2123, 1 year ago

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

Answers

Answered by sandeepsudheerreddy9
0

11 times the while loop runs


Similar questions