Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maior de três #10

Open
danielle8farias-zz opened this issue May 5, 2020 · 2 comments
Open

Maior de três #10

danielle8farias-zz opened this issue May 5, 2020 · 2 comments
Labels
good first issue Good for newcomers level-100 Nível básico

Comments

@danielle8farias-zz
Copy link
Contributor

[pt-br] Usuário informa 3 números inteiros e programa retorna o maior e o menor deles.

Exemplo de entrada

11, 12, 13
22, 22, 22
32, 33, 33

Exemplo de saída

maior: 13, menor: 11;
números iguais;
maior: 33, menor: 32

@ananeridev ananeridev added the level-100 Nível básico label Jun 19, 2020
@carolfortunato carolfortunato added the good first issue Good for newcomers label Oct 10, 2020
@bellesamways
Copy link

solução em ruby:

puts "entre com tres numeros, digite um e aperte enter até o programa informar que está calculando qual o menor e maior número: "

numero1 = gets.chomp.to_i
numero2 = gets.chomp.to_i
numero3 = gets.chomp.to_i

puts "verificando números..."

alinhados = [numero1, numero2, numero3].sort

if alinhados.uniq.count == 1
  puts "são todos iguais"
else
  puts "maior: #{alinhados[2]}, menor: #{alinhados[0]}"
end

@AlexAlexandreAlves
Copy link

@danielle8farias-zz poderia marcar a label da hacktoberfest por favor? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers level-100 Nível básico
Projects
None yet
Development

No branches or pull requests

5 participants