Draft

Redirect numbers without IF statements (Easy)

Description:

Task

You're given four numbers a, b, c, d and the number n, which equals either a or b.

Return c if n equals a, d if n equals b.

Code Limit

Use math operators and Math functions only.

No if, eval, and the following characters ?:!&|{}<>=,

Mathematics
Algorithms

Stats:

CreatedNov 21, 2018
Warriors Trained12
Total Skips0
Total Code Submissions9
Total Times Completed4
JavaScript Completions4
Total Stars0
% of votes with a positive feedback rating33% of 3
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes2
Total "Not Satisfied" Votes1
Total Rank Assessments3
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • uahnbu Avatar
Ad