Advertisement
ntamas

paritásteszt

Jan 11th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.19 KB | None | 0 0
  1. static bool paros(int szam)
  2.     {
  3.       bool par;
  4.       if (szam % 2 == 0)
  5.       {
  6.         par = true;
  7.       }
  8.       else
  9.       {
  10.         par = false;
  11.       }
  12.       return par;
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement