Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Function Sr(x As Integer, y As Integer, z As Integer) As Integer
  2. Sr = (x + y + z) / 3
  3. End Function
  4.  
  5. Sub ObliczanieSrTrzechLiczb(aa)
  6. x = InputBox("Podaj pierwszą liczbę:")
  7. y = InputBox("Podaj drugą liczbę:")
  8. z = InputBox("Podaj trzecią liczbę:")
  9. okno = MsgBox("Srednia dla liczb: " + x + "," + y + "," + z + " wynosi: " + Sr(x, y, z))
  10. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement