Skip to content

Commit

Permalink
Merge pull request #10 from gabrielduete/feat/add-solution-1050
Browse files Browse the repository at this point in the history
feat: add solution 1050
  • Loading branch information
gabrielduete authored Jun 30, 2024
2 parents 5cd2035 + 17fa638 commit 6eda064
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions iniciante/gabrielduete/1050.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const DDD = parseInt(require('fs').readFileSync('/dev/stdin', 'utf8'))

const locales = {
61: 'Brasilia',
71: 'Salvador',
11: 'Sao Paulo',
21: 'Rio de Janeiro',
32: 'Juiz de Fora',
19: 'Campinas',
27: 'Vitoria',
31: 'Belo Horizonte',
}

locales[DDD] ? console.log(locales[DDD]) : console.log('DDD nao cadastrado')

0 comments on commit 6eda064

Please sign in to comment.