Monday, June 14, 2021

Aula 6 - Mod 5 - Projeto II - Cálculo


 1 form             caption


4 label              caption


4 textbox           text


3 command       caption


*Code "Calcular IMC"***


peso=Val(Text1.Text)


altura=Val(Text1.Text)


imc=peso/(altura*altura)


Text3.Tex=imc


If imc<18.5 Then


(Text4.Text)= Abaixo do peso


Elself imc="Peso normal


Else imc>=25= Acima do peso


Else Text4.Text= Obesidade


End If

No comments:

Post a Comment

Aula 6 - Mod 15 - Projeto 5 calculo de media/nota minima

 Design ( Componentes ) 6x        Legendas        Lbl1 Lbl2 LblMedia 6x        CaixaTexto     txtB1 txtB2 txtMedia txtNm 1x        Botão    ...