cours 2 algo

This commit is contained in:
Debucquoy
2023-02-14 17:45:04 +01:00
parent 5c73c32975
commit 93ae5a67d2
6 changed files with 92 additions and 3 deletions

11
q2/cours2/Division.java Normal file
View File

@ -0,0 +1,11 @@
public class Division {
public static void main(String[] args) {
Couple test = Division(5, 3);
System.out.println(test.getQ() + ": " + test.getR());
}
public static Couple Division(int a, int b){
return new Couple(a/b, a%b);
}
}