desislava_topuzakova

3. Even or Odd

Nov 18th, 2023
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. int number = int.Parse(Console.ReadLine());
  2.  
  3. if (number % 2 == 0)
  4. {
  5. Console.WriteLine("even");
  6. }
  7. else
  8. {
  9. Console.WriteLine("odd");
  10. }
Advertisement
Add Comment
Please, Sign In to add comment