Calculer l'IMC
theyyooo
-
totoyo47 Messages postés 260 Date d'inscription Statut Membre Dernière intervention -
totoyo47 Messages postés 260 Date d'inscription Statut Membre Dernière intervention -
Bonjour, je souhaiterai faire le programme de l'imc sur ma ti 83 premium, mais ça ne marche pas... qlq peut m'aider svp ? :
Disp "QUEL EST TON POIDS en kg"
Input A
Disp "QUEL EST TA TAILLE en m"
Input B
A(B*B)→X
If X>=40
Then
Disp "TU ES TRES GROS"
Else If 35<X<40
Then
Disp "FAIS attention TU ES GROS"
Else
If 30<X<35
Then
Disp "TU COMMENCES A ETRE GROS"
Else
If X 25<X<30
Then
Disp "SURPOIDS"
Else
If 18.5<X<25
Then
Disp "NORMAL"
Else
If 16.5<X<18.5
Then
Disp "MAIGRE"
Else
If X<18.5
Then
Disp "FAMINE"
End
End
Disp "QUEL EST TON POIDS en kg"
Input A
Disp "QUEL EST TA TAILLE en m"
Input B
A(B*B)→X
If X>=40
Then
Disp "TU ES TRES GROS"
Else If 35<X<40
Then
Disp "FAIS attention TU ES GROS"
Else
If 30<X<35
Then
Disp "TU COMMENCES A ETRE GROS"
Else
If X 25<X<30
Then
Disp "SURPOIDS"
Else
If 18.5<X<25
Then
Disp "NORMAL"
Else
If 16.5<X<18.5
Then
Disp "MAIGRE"
Else
If X<18.5
Then
Disp "FAMINE"
End
End
A voir également:
- Calcul imc excel
- Calcul moyenne excel - Guide
- Liste déroulante excel - Guide
- Word et excel gratuit - Guide
- Déplacer colonne excel - Guide
- Si ou excel - Guide
1 réponse
Bonjour,
Je ne suis pas familier du langage utilisé, mais en général, les encadrements ne sont pas supportés dans les langages de programmation :
Xavier
Je ne suis pas familier du langage utilisé, mais en général, les encadrements ne sont pas supportés dans les langages de programmation :
25<X<30doit s'écrire
25 < X && X < 30(&&, ou &, ou AND... en fonction du langage)
Xavier
totoyo47
Messages postés
260
Date d'inscription
Statut
Membre
Dernière intervention
134
En effet, pour faire des encadrements en Basic Casio :