Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- @projectName: IsParNumber
- @projectsintax: Pawn/Pawno
- @projectfunc: Verifica se o número é par.
- @projectCredits: [iPs]Garfield / SuYaNw
- */
- #define IsParNumber(%0) !((%0)%(2))
- // teste:
- public OnFilterScriptInit()
- new e;
- while(e <= 10)
- {
- if(IsParNumber(e))
- {
- printf("%d é par", e);
- }
- ++e;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment