Bonjour pouvez vous m’aider avec cette exo ? Merci d’avance QUESTIONS: 1-que fait ce programme 2-modifier ce programme pour q’il teste si un nombre appartient à
Mathématiques
may416
Question
Bonjour pouvez vous m’aider avec cette exo ? Merci d’avance
QUESTIONS:
1-que fait ce programme
2-modifier ce programme pour q’il teste si un nombre appartient à l’intervalle [a;b] ,puis à l’intervalle ]a;b] et enfin à l’intervalle [a;b[
QUESTIONS:
1-que fait ce programme
2-modifier ce programme pour q’il teste si un nombre appartient à l’intervalle [a;b] ,puis à l’intervalle ]a;b] et enfin à l’intervalle [a;b[
1 Réponse
-
1. Réponse mehdidrioueche
Réponse :
Explications étape par étape :
1)
Ce programme test si un nombre x est dans l'intervalle ]a;b[
car il test x > a et x < b
2=
Il suffit de modifier la partie x > a and x > b en fonction de la demande
pour [a;b] modifier x ≥ a and y ≥ b
pour ]a;b] modifier x > a and y ≥ b
pour [a;b[ modifier x ≥ a and y > b