Skip to content

Instantly share code, notes, and snippets.

@nbluis
Last active March 13, 2018 21:11
Show Gist options
  • Select an option

  • Save nbluis/4364b9e04a73ef8590b9fb16cedcbd8c to your computer and use it in GitHub Desktop.

Select an option

Save nbluis/4364b9e04a73ef8590b9fb16cedcbd8c to your computer and use it in GitHub Desktop.

Revisions

  1. nbluis revised this gist Mar 13, 2018. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion main.rb
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@

    def soma(p1, p2)
    p1 + p2
    end
  2. nbluis revised this gist Mar 13, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion main.rb
    Original file line number Diff line number Diff line change
    @@ -15,4 +15,4 @@ def multiplica(p1, p2)
    puts soma(10, 5) == 15

    puts substrai(10, 5) == 5
    puts multiplica(5, 5) == 25
    puts multiplica(5, 5) == 25
  3. nbluis renamed this gist Mar 13, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. nbluis created this gist Mar 13, 2018.
    18 changes: 18 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@

    def soma(p1, p2)
    p1 + p2
    end

    def substrai(p1, p2)
    p1 - p2
    end

    def multiplica(p1, p2)
    p1 * p2
    end

    puts soma(10, 10) == 20
    puts soma(10, 5) == 15

    puts substrai(10, 5) == 5
    puts multiplica(5, 5) == 25