Version : 1.0 Date : 11/09/2020 Réf. : TEST-EMB-GESTFORM Classification : Publique
Vous devez établir un programme permettant de répondre à l’énoncé ci-dessous. Le programme doit être écrit de préférence dans un langage en correspondance avec le poste pour lequel vous postulez (python, nodejs, angular, etc...).
Soit une liste aléatoire de nombres entiers, compris entre -1000 et 1000.
Pour chaque nombre n de liste, on veut effectuer les opérations suivantes :
- si le nombre est divisible par 3 : on affiche Geste
- si le nombre est divisible par 5 : on affiche Forme
- si le nombre est divisible par 3 et par 5 : on affiche Gestform (d’où le nom du test)
- sinon : on affiche le nombre n
Il faut fournir le ou les fichiers permettant à notre équipe de vérifier le bon fonctionnement du programme.
Angular CLI: 17.3.4 Node: 20.11.1 Package Manager: npm 10.5.0 OS: win32 x64
Angular: ...
@angular-devkit/architect 0.1703.4 @angular-devkit/build-angular 17.3.4 @angular-devkit/core 17.3.4 @angular-devkit/schematics 17.3.4 @schematics/angular 17.3.4 rxjs 7.8.1 typescript 5.3.3 zone.js 0.14.4
- Cloner le projet sur votre ordinateur
- Ouvrir un terminal dans le dossier du projet
- Exécuter la commande
npm install
pour installer les dépendances - Exécuter la commande
ng serve
pour lancer le serveur de développement - Ouvrir un navigateur et accéder à l'adresse
http://localhost:4200/