Question #274805

  What is a token? Differentiate between a for loop and a while loop? What are it uses?    


Expert's answer

A token is a basic component of a source code.

In for loop, the number of iterations are known while in while loop, the number of iteration is not known, the program runs until a condition is met. The loops are used to execute a block of code multiple times


LATEST TUTORIALS
APPROVED BY CLIENTS