Skip to content

Instantly share code, notes, and snippets.

@edipofederle
Created January 1, 2011 14:41
Show Gist options
  • Select an option

  • Save edipofederle/761789 to your computer and use it in GitHub Desktop.

Select an option

Save edipofederle/761789 to your computer and use it in GitHub Desktop.
begin
x = fatorial("f")
rescue ArgumentError => e
puts "Numero >= que 1 eh preciso"
rescue TypeError => e
puts "Tente com intiero"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment