SHARE
TWEET

Untitled

a guest May 22nd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub five()
  2.     Dim n As Integer, s As String, f As String, TableC(8) As Integer, TableB(8) As Integer, Z As Integer, k As String
  3.    
  4.     For n = 1 To 8
  5.         TableC(n) = Rnd * 25
  6.     Next n
  7.    
  8.     For n = 1 To 8
  9.         s = s & TableC(n) & " "
  10.     Next n
  11.    
  12.    
  13.     For n = 1 To 8
  14.         TableB(n) = Rnd * 25
  15.     Next n
  16.    
  17.     For n = 1 To 8
  18.         k = k & TableB(n) & " "
  19.     Next n
  20.    
  21.     For n = 1 To 8
  22.         If TableC(n) / 5 Then
  23.             TableB(n) = TableB(n) * 5
  24.         End If
  25.         If TableC(n) \ 5 Then
  26.             TableB(n) = 0
  27.         End If
  28.             f = f & TableB(n) & " "
  29.     Next n
  30.    
  31.     MsgBox "C(8) = " & s & vbNewLine & vbNewLine & "B(8) = " & k & vbNewLine & vbNewLine & "B(8) изменённое = " & f
  32. End Sub
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top