for loop-
for loop is the control flow statement which allows the code to execute repeatedly.
example- if we want to print values from 1 to 100, so instead of using the print statement(cout<<"1";) multiple times we will use the for loop which will make our task easy.
do while-
do while loop is also the control flow statement which executes the code atleast once and rest depending upon the while condition.
We use multiple for loops here and one for loop is contained int the body if other for loop
if-else
if-else statement is used to test the condition.
if block is executed if the condition is true. Otherwise the else block is executed.