Question d’entretien chez Euphoria XR

Write a function that takes a parameter which can be either 100 or 101, the function will return 100 if the parameter is 101 or if the parameter is 101 it should return 100. Need to solve this without using any conditionals.

Réponse à la question d'entretien

Utilisateur anonyme

25 mars 2023

Simple solution: return 201 - num