Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int num = 10;
- if (num < 0)
- {
- Console.WriteLine("negative");
- }
- else if (num % 2 == 0)
- {
- Console.WriteLine("odd");
- }
- else
- {
- Console.WriteLine("even");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement