Реферат: Билеты по информатике 10 класс: Visual Basic
Gl = "аеиоуыэюяё"
For i = 1 To Len(S)
c = Mid(S, i, 1)
S1 = S1 + c
K = K + 1
If K > Len(Gl) Then K = 1
S1 = S1 + Mid(Gl, K, 1)
Next i
For i = 1 To (Len(S1)) / 2
Call Swap(S1, i, Len(S1) - (i - 1))
Next i
S = S1
MsgBox (S)
End Sub
4
Sub шифр()
Dim S As String, Sogl As String
Dim S1 As String, c As String
Dim Gl As String, K As Long
Dim i As Long
S = InputBox("Ввод шифра")
For i = 1 To (Len(S)) / 2
Call Swap(S, i, Len(S) - (i - 1))
Next i
For i = 1 To Len(S) Step 2
c = Mid(S, i, 1)
S1 = S1 + c
Next i
S = S1