cours_progra/q2/algo/cours2/Division.java

12 lines
243 B
Java
Raw Permalink Normal View History

2023-02-14 17:45:04 +01:00
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);
}
}