.
This commit is contained in:
18
bac1/q2/algo/tp1/HelloWorld.java
Normal file
18
bac1/q2/algo/tp1/HelloWorld.java
Normal file
@ -0,0 +1,18 @@
|
||||
public class HelloWorld {
|
||||
public static void main(String[] args) {
|
||||
String prenom = "Anthony";
|
||||
int age = 21;
|
||||
double taille = 1.85;
|
||||
printHello(prenom, age, taille);
|
||||
|
||||
}
|
||||
|
||||
public static void printHello(String prenom, int age, double taille)
|
||||
{
|
||||
System.out.println("Hello World");
|
||||
System.out.println("Mon nom est " + prenom);
|
||||
System.out.println("J'ai " + age + "ans et je mesure " + taille + "m :)");
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user