bloc1:prog:conditionnelles
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| bloc1:prog:conditionnelles [2024/11/19 09:09] – [Forme riche (Selon-cas)] montay.l | bloc1:prog:conditionnelles [2024/11/19 09:12] (Version actuelle) – [Forme riche (Selon-cas)] montay.l | ||
|---|---|---|---|
| Ligne 48: | Ligne 48: | ||
| La <color # | La <color # | ||
| - | <WRAP left round box 60%> | + | <code=java> |
| + | String choix; | ||
| + | if(choix == 1){ | ||
| + | System.out.println(" | ||
| + | } else if(choix == 2){ | ||
| + | System.out.println(" | ||
| + | } else if(choix == 3){ | ||
| + | System.out.println(" | ||
| + | } else { | ||
| + | System.out.println(" | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | < | ||
| switch(choix){ | switch(choix){ | ||
| case 1: | case 1: | ||
| Ligne 63: | Ligne 76: | ||
| | | ||
| } | } | ||
| - | </WRAP> | + | </code> |
| - | <WRAP right round box 60%> | ||
| - | String choix; | ||
| - | if(choix == 1){ | ||
| - | System.out.println(" | ||
| - | } else if(choix == 2){ | ||
| - | System.out.println(" | ||
| - | } else if(choix == 3){ | ||
| - | System.out.println(" | ||
| - | } else { | ||
| - | System.out.println(" | ||
| - | } | ||
| - | </ | ||
bloc1/prog/conditionnelles.1732003771.txt.gz · Dernière modification : 2024/11/19 09:09 de montay.l
