if()
{
//something goes here
if()
{
//nested if
}
}
else if (condition)
{
//else if logic goes here
}
else
{
//elese part goes here
}
switch(field)
{
case 1:
//logic
break;
…..
case N:
//logic
break;
default:
break;
}
//Looping
for (initialization; condition; increment/decrement)
{
}
for(int i=0; i<6; i++)
{
}
while select()
{
}
do
{
//logic
}while();