If-else syntax

if-else codition:



Syntax:

if (condition)
{

}
else
{

}

if-else-if codition:



if (condition)
{

}
else if (condition)
{

}
else
{

}

Comments

Popular posts from this blog

Declaring Integer type Variable and storing Values in C++ programming

Swapping of Variables