Created
March 24, 2023 16:32
-
-
Save MateusAndraste/d43ee18ea4c0fcaac1c0b26e14298ac1 to your computer and use it in GitHub Desktop.
Desafio Programa para Consulta de CPF com Ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # source 'https://rubygems.org/gems/cpf_cnpj' | |
| # gem 'cpf_cnpj', '~> 0.5.0' | |
| require 'cpf_cnpj' | |
| print 'Informe seu CPF: ' | |
| user_cpf = gets | |
| if CPF.valid?(user_cpf) | |
| puts 'Cpf válido' | |
| else | |
| puts 'Cpf inválido' | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment