When you log into a social media site, it asks for your username and password, and then it matches both with the ones stored in its database. ![]() Because of this behavior, the if else statement is also known as the conditional statement.įor e.g. In such cases, an if else statement comes handy. In programming, we often encounter situations where we are given two (or more) choices, and we have to proceed with one. Remember those autumn mornings during school time? Heavy rains and you have to decide whether you're going to school or not? Well, the usual answer used to be If it stops raining, then I'll go the school otherwise, I won't. We will learn about all of them in detail. The if-else statement can be used in situations where we have to make decisions depending on the existence of a particular condition. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |