005-002-011
If-Else: Even or Odd
Easy
Problem Description
If-Else: Even or Odd
Learning Objective: Implement conditional branching combining if-else with modulo operator
Overview
Create a program that determines whether a given number is even or odd.
Specifications
- Assign value 14 to variable
num - Use if-else statement to check even/odd
- Output "Even" if even, "Odd" if odd
Output Format
Even
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
