Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "protheus.ch"
- User Function A02Ex06() // Referente aos números pares
- Local nNum := 1
- While nNum <= 10
- If nNum % 2 == 0 // se a divisao de nNum por 2 resultar em ZERO como resto significa q nNum é par
- MsgAlert(nNum)
- EndIf
- nNum++
- EndDo
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement