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
EasyGiven 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
1Course Introduction
Introduction2Easy Difficulty
SumEven or OddSquare & CubeMonthsMiddle digitTriangleMathematicsSum to NSum of numbersSortingCircle