Please enable JavaScript.
Coggle requires JavaScript to display documents.
Control structure (Simple Statement (char name[10]="Bharati"),…
Control structure
Simple Statement
char name[10]="Bharati"
Compound Statement
{
int marks1=10, int marks2=20
avmarks=(marks1+marks2)/2
}
Type of Statement
Assignment Statement
Int no=10
Looping Statements
Statements used in Looping statement
Break
Continue
Goto
Do loop
Do
{
block of statement
}While(expression)
While Loop
While (expression)
{
block of statement
}
For Loop
for(initialize;condition;increment/decrement)
{
block of Statement
}
Decision Making statements
If Block
if (expression)
{
Block of statement
}
if--else Block
if( expression)
{
Block of statement}
else
{
block of statement}
Switch---Case
Switch (expression)
{
case1 :check: statement
break
case2 :check: statement
break
case n :check: statement
break
dafault :forbidden:
}
Control Statement