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

Tabuada de multiplicação #2

Open
danielle8farias-zz opened this issue Apr 28, 2020 · 4 comments
Open

Tabuada de multiplicação #2

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

Comments

@danielle8farias-zz
Copy link
Contributor

[pt-br] Usuário digita uma número inteiro e programa retorna a tabuada de multiplicação deste.

Exemplo de Entrada

5

Exemplo de saída

5 x 0 = 0
5 x 1 = 5
5 x 2 = 10
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
5 x 8 = 40
5 x 9 = 45
5 x 10 = 50

@lalizita
Copy link
Contributor

Para quem quiser fazer em node rodando as perguntinhas no temrinal eu tenho uma dica!

https://nodejs.org/en/knowledge/command-line/how-to-prompt-for-command-line-input/

@mariagabrielec
Copy link

https://github.com/mariagabrielec/cod/commit/565123707c189044e5172e935b11bf6f3e1f7229

@leticiacamposs2
Copy link
Contributor

Fiz a minha solução em Node:
https://github.com/leticiacamposs2/hackerrank-algorithms-js/blob/master/11-multiplication-table.js

@carolfortunato carolfortunato added good first issue Good for newcomers level-100 Nível básico labels Oct 10, 2020
Kamilahsantos pushed a commit that referenced this issue Oct 30, 2020
@bellesamways
Copy link

solução em ruby:

puts "entre com um número e aperte enter: "

numero = gets.chomp

puts "a tabuada do #{numero} é:"

[1,2,3,4,5,6,7,8,9,10].each do |multiplicador|
  puts "#{numero.to_i} x #{multiplicador} = #{numero.to_i*multiplicador}"
end

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

6 participants