Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include "protheus.ch"
  2.  
  3. User Function A02Ex06() // Referente aos números pares
  4. Local nNum := 1
  5.  
  6. While nNum <= 10
  7.  
  8. If nNum % 2 == 0 // se a divisao de nNum por 2 resultar em ZERO como resto significa q nNum é par
  9. MsgAlert(nNum)
  10. EndIf
  11.  
  12. nNum++
  13. EndDo
  14.  
  15. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement