diff --git a/DEV.2.1/CM-blanc/CM-1/Fenetre.java b/DEV.2.1/CM-blanc/CM-1/Fenetre.java new file mode 100644 index 0000000..2414e50 --- /dev/null +++ b/DEV.2.1/CM-blanc/CM-1/Fenetre.java @@ -0,0 +1,12 @@ +import java.awt.*; +import javax.swing.*; + +public class Fenetre extends JFrame { + public Fenetre() { + super(""); + this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + this.setSize(500,500); + this.setLocation(500,250); + + } +} \ No newline at end of file diff --git a/DEV.2.1/CM-blanc/CM-1/Main.java b/DEV.2.1/CM-blanc/CM-1/Main.java new file mode 100644 index 0000000..d2faa22 --- /dev/null +++ b/DEV.2.1/CM-blanc/CM-1/Main.java @@ -0,0 +1,10 @@ +import java.awt.*; +import javax.swing.*; + +public class Main { + public static void main(String[] args) { + Fenetre fenetre = new Fenetre(); + + fenetre.setVisible(true); + } +} \ No newline at end of file diff --git a/DEV.2.1/cours-java/10 Flux de caractères.docx b/DEV.2.1/cours-java/10 Flux de caractères.docx new file mode 100644 index 0000000..a1c83fe Binary files /dev/null and b/DEV.2.1/cours-java/10 Flux de caractères.docx differ diff --git a/DEV.2.1/cours-java/10.01 Exo.docx b/DEV.2.1/cours-java/10.01 Exo.docx new file mode 100644 index 0000000..9150d44 Binary files /dev/null and b/DEV.2.1/cours-java/10.01 Exo.docx differ diff --git a/DEV.2.1/cours-java/11 Diagramme de cas d'utilisation.docx b/DEV.2.1/cours-java/11 Diagramme de cas d'utilisation.docx new file mode 100644 index 0000000..e6a9650 Binary files /dev/null and b/DEV.2.1/cours-java/11 Diagramme de cas d'utilisation.docx differ diff --git a/boucle b/boucle new file mode 100644 index 0000000..7c2528b --- /dev/null +++ b/boucle @@ -0,0 +1,59 @@ +1) +AVEC WHILE + +#include +#include + +int main(void) { + int x,y; + printf("insérez un entier naturel\n"); + scanf("%d", &x); + printf("insérez un deuxième entier naturel\n"); + scanf("%d", &y); + if (xy){ + printf("%d\n",y); + y+=1; + } + } + return EXIT_SUCCESS; +} + +AVEC DO WHILE +#include +#include + +int main(void) { + int x,y; + printf("insérez un entier naturel\n"); + scanf("%d", &x); + printf("insérez un deuxième entier naturel\n"); + scanf("%d", &y); + if (xy); + } + return EXIT_SUCCESS; + +} +