1.
. .
2.
2.1. .
2.2. .
2.3. , , , .
. , 䳿. Visual Basic .
If...Then.. Else.
If...Then.. Else . If...Then
If Then
End If
ij : If , True, , Then. False, :
If Then
1
Else
2
End If
Private Sub Command1_Click()
a = 6
If a = 7 Then
Print "visual"
Else
Print "basic"
End If
End Sub
. .
Private Sub Command1_Click()
a = Val(Text1.Text)
b = Val(Text2.Text)
c = Val(Text3.Text)
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Max = a
If b > Max Then Max = b
If c > Max Then Max = c
Print Max
Min = a
If b < Min Then Min = b
If c < Min Then Min = c
If a < Max And a > Min Then Print a
If b < Max And b > Min Then Print b
If c < Max And c > Min Then Print c
Print Min
End Sub
If 1 Then
1
ElseIf 2 Then
2
Else
3
End If
. ϳ .
Private Sub Command1_Click()
Dim z, n As Integer
z = Val(Text1.Text)
If z <= 200 Then
n = z * 0.15
ElseIf z >= 200 And z <= 500 Then
n = z * 0.2
Else
n = z * 0.28
End If
Label3.Caption = Str(n)
End Sub
, , , , . . .
.
1. ij ?
2. ?
3. ?
.
1. , ;
2. , .
3. :
|
|
πx2 7/x2 < 1,3;
y = 3 + 7 = 1,3;
lg(ax+) a > 1,3.
4. , B, .
5. .
6. A, B, C .
7. , H M 3. 3, , .
8. :
lg3 a2 + / e x x < 3;
y = + 1/x 3 < x < 7;
a Cos2 (e) + a Sin2(aex) x > 7.
9. 1, X2, X3, X4 .
10. .
A B n =1;
A H/2 n =2;
S = (A+B) H/2 n =3;
πR2 n =4;
πR2 φ/360 n =5.
11. , , . :
e m+A/B K=0;
y = ln(A+B) K=1;
K=2.
12. :
1,5 Cos2 x x < 1;
1,8 ax x = 1;
S =
(x-2)2 + 6 1< x <2;
3 tg x x > 5.
13. X, Y, Z , A , B - , - .
3