c sharp conditional Statements

The if else Statements are used in C sharp to Evaluates  the given Condition if the condition is True then execute code in if block or if the the condition is false  then execute the else block code.For Example.







In the above program we are checking the UserLuckyNo if his lucky number less then 10 then the code in if Block will executed and will printed on screen "You are Really Lucky Person" .But If the UserLucky Number is greater then then the else if block code will executed  . and finally if the User did type any Number and just press Enter the Else block code will executed and will print on Screen that "You have to enter  Your lucky number".

No comments:

Post a Comment

Sending SMS Via Windows Form Application Using any Android Smart Phone  Source Code  using System ; using System . C...