MàJ par récupération sur Clé USB et dans /mnt/hd/Chargement du pc portable
This commit is contained in:
11
G5a/Solutions/2-exoSyntaxeJava/BonjourToi1.java
Normal file
11
G5a/Solutions/2-exoSyntaxeJava/BonjourToi1.java
Normal file
@ -0,0 +1,11 @@
|
||||
import iutsud.Console;
|
||||
class BonjourToi1{ // essai d'entr<74>e-sortie caractere avec le package iutsud
|
||||
public static void main (String[] args) {
|
||||
String nom;int an;
|
||||
System.out.print ("tapez votre nom : ");
|
||||
nom=Console.readLine();
|
||||
System.out.print ("tapez votre annee de naissance : ");
|
||||
an=Console.readInt();
|
||||
System.out.println ("Bonjour "+nom+" ! Vous avez "+(2007-an)+" ans");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user