.
This commit is contained in:
11
bac1/q2/algo/cours2/Division.java
Normal file
11
bac1/q2/algo/cours2/Division.java
Normal 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);
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user