quest

Sign in to start training

quest keeps your progress, streaks, and scores tied to your account — so you can pick up on any device.

Synced everywhere. Progress follows you across laptop and phone.
Streaks & stats. See your daily run and every score over time.
Your profile. A name and avatar for the work you do here.

We only use Google to sign you in and sync progress. No posting, no contacts — ever.

Core Beginner

01  Functions

Implement small functions. The final expression in a block, written without a semicolon, is the value the function returns.

Step 2 / 2

Implement is_even so it returns true when n is even.

Hints
  • n % 2 == 0 is already a bool -- return it directly.
01_functions.rs
Reset to starterCompiled in a sandbox; hidden checks must pass.
Reveal solution
fn is_even(n: i32) -> bool {
    n % 2 == 0
}