Selection:
- its is a program which uses statements, commonly used are If, Then, Else, that can be used to make a a program work. In my program i used If, then and, else statement that if you choose a number ranging from 1 to 10 then it will show the corresponding output.
Sequence:
- it is composed of listed instructions that enables it to run consecutively. In my program you must input 2 numbers, then click the command button to sum up the given numbers.
Private Sub Command1_Click()
‘To add the values in text box 1 and text box 2Sum = Val(Text1.Text) + Val(Text2.Text)‘To display the answer on label 1Label1.Caption = Sum
End Sub

No comments:
Post a Comment