Ronaldo95163
- 77
- 1
The discussion revolves around a homework problem related to an algorithm that involves a function called printSpaces(j+1). Participants are trying to understand how to handle the variable j, which is not defined in the problem statement.
Participants seem to agree on the approach of assuming a starting value for j, but there is no consensus on whether the original question contains an error or if the initialization behavior of the programming language is relevant.
The discussion does not clarify whether the assumption about j's initialization is universally applicable across different programming languages or contexts.
Ronaldo95163 said:Thanks man
So if I assume that j starts at 0 the output would be:
-*--------*
***********