Conditional operator
Before start writing something about this post I want to ask
you a question.
Is computer IQ is greater than human?
What is your answer Yes/NO?
Answer
Computer IQ is zero. If IQ is zero then how can computer
work smartly and take decision like human.
It is possible of IF statement which enable your computer to
make decision. That is why every programming language support if-else statement.
Syntax
If(condition)
{
If condition is
true
Then this part
will be run
}
Else
{
If condition is
false
Then this part
will be run
}