To make sure you studied everything you need to know.
WAECUP stands for waste, accident, error, crime, and unethical practices.
Assuming that the components are the same as what's included in the acronym, that should be your answer.
Hope this helps!
Answer: not sure if you can
Explanation: idk if you can but if you wanna get a good answer try searching up on google hope i helped!
Answer:
not familiar with C++. but basically save the constant 4/3 in a variable and use user input of cin << i believe to ask for a radius. Then take that radius/input saved in a variable and cube it, then return the value.
Explanation:
i hope this works.
<h2>This function will land up in infinite function call</h2>
Explanation:
first time when the function gets invoked,
f(6,8), so k=6 & n=8, inside the function it checks k==n, ie. 6==8, returns false, then one more if is available, so 6>8 is check for , once again it is false and else loop is executed, the function is called recursively using f(k-n,n), that is f(6-8,8), it means f(-2,8) is passed.
Second time,
if(-2==8) is false, so if(-2>8) is again false and function f(-10, 8) is called
if(-10==8) is false, so if(-10>8) is again false and function f(-18,8) is called
if(-18==8) is false, so if(-18>8) is again false and function f(-26,8) is called
So this goes recursively and ends in an infinite function call.