BUT2/DEV/DEV2.1/TP04_Classes_et_objets/Q1_Progression.java

10 lines
202 B
Java
Raw Normal View History

2023-10-23 13:23:36 +02:00
public class Q1_Progression {
public static void main(String[] args) {
Compteur c = new Compteur(5);
do {
System.out.println(c.toString());
c.plusUn();
} while (c.getValue() <=9);
}
}