Sunday, 6 April 2014

Explain flow control and its 2 types branching and looping.

Flow control-There are two methods of controlling program flow ie, controlling order of execution of lines in C# code.They are branching and looping.These methods use boolean logic.
Branching-Here code is executed when the condition given is true.For example-only execute code if my val is less than 10.Result is shown by true or false.
Looping-Here same statement will be executed repeatedly for a certain amount of times,until a test condition is reached.Its type is bool.

No comments:

Post a Comment