for loop in shell script

C++
for i in {1..5}
do
   echo "Welcome $i times"
done#!/bin/bash
for (( c=1; c<=5; c++ ))
do  
   echo "Welcome $c times"
done
for i in `seq 1 10`
do
	echo $i #Do something here.
donefor VARIABLE in 1 2 3 4 5 .. N
do
	command1
	command2
	commandN
donefor VARIABLE in file1 file2 file3
do
	command1 on $VARIABLE
	command2
	commandN
donewhile [ <some test> ]
do
<commands>
done
Source

Also in C++: