exercice condition boucle
This commit is contained in:
parent
d62d18dd19
commit
fedcec9c0e
25
Exercice1.java
Normal file
25
Exercice1.java
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user