✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Que fait l’algorithme si une personne a 15 ans et un abonnement actif ?
Algorithme abonnement
Variables
age : Réel
abonnement_actif : Booléen
Debut
lire(age)
lire(abonnement_actif) // booléen : true si actif, false sinon
si age ≥ 16 alors
si abonnement_actif = true alors
afficher "Accès autorisé"
sinon
afficher "Abonnement invalide"
sinon
afficher "Accès refusé – âge insuffisant"
Finsi
Fin