Advertisement
alexappelt

Untitled

Jul 6th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.14 KB | None | 0 0
  1. def soma(a,b)
  2. a+b
  3. end
  4.  
  5. #Ao chamar a função soma e passar dois valores para a e b, trará a soma dos mesmos
  6.  
  7. soma(4,4)
  8. #Resultado: 8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement