What is a token? Differentiate between a for loop and a while loop? What are it uses?
A token is a basic component of a source code.
The difference between a for loop and a while loop is that in for loop, the number of iterations are known because they are stated in the condition while in while loop, the number of iteration is not known, the program runs until a condition is met. The use of loops is that they are used to execute a block of code multiple. times
Comments
Leave a comment