Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a variable num and check if it is even or odd.

Easy

Problem Statement

Create a variable num and check if it is even or odd.

Sample Input

num = 7

Sample Output

Odd

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
// Check if number is even or odd let num = 7; if () { console.log("Even"); } else { console.log("Odd"); }
Log in or sign up to run or submit your code.Log inSign up
Input
num = 7
Expected Output
Odd