Advertisement
jaodesignbr

QUESTÃO 1 - LISTA 1 SEGUNDO ESTÁGIO ICC

Apr 17th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Sub Q1_L1()
  2. 'LOCAIS DE MEMÓRIA
  3. Dim X As Double, Y As Double, LOG10 As Double
  4. Dim LINHA As Integer
  5. 'CÁLCULOS
  6. LINHA = 2
  7. For X = 0.5 To 5# Step 0.25
  8.     LOG10 = Log(X) / Log(10)
  9.     Y = 1 / X - 4.3 * LOG10 + X ^ 4
  10.     Cells(LINHA, 1) = X
  11.     Cells(LINHA, 2) = Y
  12.     LINHA = LINHA + 1
  13. Next X
  14. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement