Write a Java Program to Find GCD of two Numbers
1 2 3 4 5 6 7 8 9 10 11 12 13 |
public class QuotientRemainder { public static void main(String[] args) { int dividend = 25, divisor = 4; int quotient = dividend / divisor; int remainder = dividend % divisor; System.out.println("Quotient = " + quotient); System.out.println("Remainder = " + remainder); } } |