Menu
Coddy logo textTech

Even or Odd

Lesson 3 of 32 in Coddy's Coding Problems course.

Create a program which will check whether a number is even or odd.

challenge icon

Challenge

Easy

Given a natural number N from input. Output "EVEN" if the number is even and output "ODD" if the number is odd.

The function name should be evenOrOdd.

 

Input
30

Output
EVEN

Input
55

Output
ODD

Try it yourself

#include <stdio.h>
#include <string.h>

char* evenOrOdd(int N) {
    // Write code here
    return "";
}

All lessons in Coding Problems