initial commit

This commit is contained in:
Guillaume-Sanchez
2026-05-26 13:56:03 +02:00
parent 4c720637a1
commit ff4bb12d22
539 changed files with 12415 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
## Getting Started
Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code.
## Folder Structure
The workspace contains two folders by default, where:
- `src`: the folder to maintain sources
- `lib`: the folder to maintain dependencies
Meanwhile, the compiled output files will be generated in the `bin` folder by default.
> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there.
## Dependency Management
The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies).
Binary file not shown.
@@ -0,0 +1,48 @@
/*
Exercice 3 :
Ecrire un programme qui, étant donné une équation du second degré,
détermine le nombre de ses solutions réelles et leurs valeurs approchées éventuelles.
*/
public class App {
public static void main(String[] args) throws Exception {
int a =1;
int b =2;
int c =1;
int delta = (b*b)-(4*a*c);
if (delta < 0) {
System.out.println("L'équation admet aucune solution dans R");
}
else if(delta == 0){
System.out.println("L'équation admet 1 solution dans R ");
}
else if(delta > 0){
System.out.println("L'équation admet 2 solution dans R");
}
else{
System.out.println("Une erreur est survenu");
System.exit(1);
}
}
}
/*
D = b² - 4ac
D > 0
D = 0
D < 0
ax² + bx + c
b² - 4ac
*/