Authour:I will teach you courses online
| C Language | C++ | Asp.net | VB.net | Oracle | Hardware and Networking | MCSE |
| Contact: | Name: Shrinivas | Mobileno:919703619391 | E-mail: vas.shrinivas002@gmail.com |
How to understand IF and Else:
Programming means a programmer expect some scenarios, in
user perspective.
Based on that we develop program-mes. Don't think it's very hard.
See below explanation-A simple way to explain if and else
Today you decided to go your hometown, Assume that sometimes
it will happen. While riding bike you have decided IF i luckily catch the train
it's ok ELSE it's better to go by BUS. You rushed to railways station, you were
all ready late. Then already option chosen by you that is BUS.
So real world you are a big programmer, I am right.
See this
if (train==their)
{
alert("Travel by train")
}
else
{
alert("Travel By BUS");
}
Niece explanation isn’t it. Again don't add my in your fans
list.
If(i==5)
{
alert(“Target reached”);
}
Else
{
Alert(“Try again”);
}
Very Simple.
Take my knowledge and improve yourself.
.
.
if and else
if(a==1)
{
alert("Yes a 1");
a=0;
}
else
{
{
alert("Some other value: " + a);
}
By reading above explanation you can easily understand this.
Next how to understand multiple if and else
.

No comments:
Post a Comment