![]() ![]()
Functionsįunctions return a value when they are called. Usually Procedures are written when multiple calls are required to same set of statements which increases re-usuability and modularity. Procedure is a sub-routine which contains set of statements. Do-while Do conditional-expression Procedures While While conditional-expressionĮnd While 4. Take the last variable named perimeter and store the result of the calculation. Take another variable named width and store the width of the rectangle into this. Take a variable named length and store the length of the rectangle into this. Select Case Select expressionĮnd Select Loops 1. The following are the steps that we need to follow to solve this problem. Nested-If If(conditional-expression)ThenĮnd If 5. 'code if the above conditional-expression is falseĮnd If 4. 'code if the above conditional-expression is true If-else-if ladder If(conditional-expression)Then 'code if the conditional-expression is falseĮnd If 3. 'code if the conditional-expression is true Simple syntax of Variable declaration is as follows Dim variableName dataType ] Variable initialization variableName = value Conditional Statements 1. You could make it so that when you press the button it does the calculations based on the shape. Variable is a name given to the storage area in order to identify them in our programs.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |