30 lines
415 B
Java
30 lines
415 B
Java
import static utils.Utils.*;
|
|
|
|
public class Variables {
|
|
|
|
public static final void main(String[] args) {
|
|
|
|
int i = 0;
|
|
int j= 1;
|
|
|
|
int k = ajouter(2, j);
|
|
|
|
ajouterEtAfficher(2, 4);
|
|
|
|
afficher(k + 1);
|
|
|
|
}
|
|
|
|
public static int ajouter(int a, int b) {
|
|
int c = a + b;
|
|
return c;
|
|
}
|
|
|
|
|
|
public static void ajouterEtAfficher(int a, int b) {
|
|
int c = a + b;
|
|
afficher("resultat:", c);
|
|
}
|
|
|
|
}
|