initial commit
This commit is contained in:
@@ -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,30 @@
|
||||
/*
|
||||
|
||||
Exercice 2 :
|
||||
|
||||
a) Ecrire un programme en java qui prend en entrée trois réels x, y et z et affiche le maximum des trois.
|
||||
|
||||
*/
|
||||
|
||||
public class App {
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
||||
// instantiation de x, y et z
|
||||
|
||||
int x = 3;
|
||||
int y = 4;
|
||||
int z = 1;
|
||||
|
||||
if (x > y && x > z) {
|
||||
System.out.println("x est plus grand");
|
||||
}
|
||||
else if(y > x && y > z){
|
||||
System.out.println("y est plus grand");
|
||||
}
|
||||
else if(z > x && z > y){
|
||||
System.out.println("z est plus grand");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user