Question
You need to print all the number divided by 13
A
Anonymous
December 30, 2025

Answer

Code:

reject(
fn!isnull,
a!forEach(
items: enumerate(100) + 1,
expression: { if(mod(fv!item, 13) = 0, fv!item, null()) }
)
)

This expression returns all numbers divisible by 13 between 1 and 100 by:

  1. enumerate(100) + 1 → generates numbers 1 to 100
  2. a!forEach() → loops through each number
  3. mod(fv!item, 13) = 0 → checks divisibility by 13
  4. if(..., fv!item, null()) → keeps divisible numbers, others become null
  5. reject(fn!isnull, ...) → removes all null values from the result


Output:

{13, 26, 39, 52, 65, 78, 91}


JuniorExpressions#sailcoding#coding
Loading comments...
You need to print all the number divided by 13 — Expressions Appian Interview Question | Appian Interview Questions - AppianVerse