terça-feira, 16 de abril de 2013

Estrutura de decisão - if ...then ..


If <condição> then
     <instruções>
[Else lf <Condição> then
     <condição>]
[Else
     <Intrudoção>
End if

Por Exemplo: 

if Nota < 10 Then
    MsgBox(“Reprovado”)
Else
    MsgBox(“Aprovado”)
End if

Sem comentários:

Enviar um comentário