Posts

Showing posts with the label #decisionmaking #ifcondition #c#

Making Decisions in your program – C# Decision Making

Introduction: Sometimes ,We have a many situations where we may have to change the order  of execution of statements based on user input . B ased on some kind of condition, the program can choose a different set of instructions to run. In C#, various types of decision making statements are available such as if,if..else, else..if, switch etc.But if Condition is most widely used in C# . What is Decision Making ? Decision making statements help you to make decision based on certain conditions. Making Decisions in your progrm is required by  the programmer to specify one or many conditions to be evaluated or tested , along with a statement or statements to be executed. If the condition is find to be true, and optionally, other statements to be executed if the condition is determined to be false. If Statement: If Statement is used for all kinds of things in your program. In this statement you write on if statement the  keyword  if is used. If Sta...