Assignment statement
Variable
= Expression;
example... int num = a * b;

Logical if statement
no else
if (
condition )
{
true statements
}

Logical if statements simple form
if
( condition )
true statement;;
else
false statement;;
example...... if ( a == b)
count =1;
else
count =2;

Logical if else statements using
brackets
if ( condition )
{
true statements
}
else
{
false statements
}
example.... if ( a > b)
{
count = 1;
tot=tot+a;
}
else
{
count = 2;
tot=tot+b;
}

do
{
statements;
} while ( condition
); // repeat loop while condition is
true

while ( condition ) //
while condition is true perform the loop
{
statements;
}

for (starting value; test condition ; increment )
{
statements;
}
example...
for(a=1;a<100;a=a+1)
{
.......
.......
}
