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

Aline santos #37

Open
wants to merge 2 commits into
base: aline-santos
Choose a base branch
from

Conversation

aline-pereira
Copy link

Exercícios da semana 02

let lado3 = parseInt(prompt("Digite o 3º lado do triângulo:"));
if ((lado1 < (lado2 + lado3)) && (lado2 < (lado1 + lado3)) && (lado3 < (lado1 + lado2))) {
console.log("Os valores podem formar um triângulo.");
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aqui só faltou verificar quando é isósceles, escaleno ou equilatero

let cigarrosDia = Number(prompt("Digite a quantidade de cigarros fumados por dia"))
let cigarrosFumadosAnos = Number(prompt("Digite quantos anos já fumou"))

let dias = (cigarrosDia * 0.10) + (cigarrosFumadosAnos * 365)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tem certeza que essa conta reflete a regra que é:
1 cigarro reduz 10 minutos de vida?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants