Everyday there are some tasks which need to be done repeatedly.Loops are programming elements which repeat a portion ofthecode for a set number of times till the desired process is complete.
there are 3 kinds of loops :- while loop, for loop and nested loop
The While loop can executea set of commands till the conditionis true While Loops are also called conditional loops. Once the condition is met then the loop is finished
For loop is needed for iterating over asequence
A loop that occurs within another loop is called nested loop.
Arrays are collection of similar data type variables . Arrays do not support different data types in same collection. for ex you can make an array of strings and an array of integers but not an array of strings+integers.