Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- -- quest 1
- repeat
- print("Insira seu peso")
- peso = io.read("*n")
- print("Insira sua altura")
- altura = io.read("*n")
- IMC = (peso/(altura)^2)
- if IMC<18.5 then
- print("Abaixo do Peso")
- end
- if (IMC>=18.5) and (IMC<25) then
- print("Peso Normal")
- end
- if (IMC>=25) and (IMC<=30) then
- print("Acima do peso")
- end
- if IMC>30 then
- print("Obeso")
- end
- until ((peso~=0) and (altura~=0))
- ]]--
- --[[
- -- quest 2
- repeat
- print("Digite um número")
- numero = io.read ("*n")
- numero2 = io.read ("*n")
- soma = (numero + numero2)
- multiplica = (numero * numero2)
- until ((soma > numero) and (multiplica > numero2))
- print (soma)
- print(multiplica)
- ]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement