exercice condition boucle

This commit is contained in:
Meutel 2019-05-30 13:04:44 +02:00
parent d62d18dd19
commit fedcec9c0e
1 changed files with 25 additions and 0 deletions

25
Exercice1.java Normal file
View File

@ -0,0 +1,25 @@
import static utils.Utils.*;
public class Exercice1 { // FIXME A CHANGER
public static final void main(String[] args) {
int a = 3;
int compteur = 0;
String texte="Trop grand";
if (a<10) {
while(compteur<a)
{
afficher(a);
compteur = compteur+1;
}
}
else{
afficher(texte);
}
}
}