cours_progra/q2/algo/tp1/HelloWorld.java

19 lines
419 B
Java
Raw Permalink Normal View History

2023-03-09 11:38:23 +01:00
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 :)");
}
}