Multiply Two Numbers in Java.
Compute Quotient and Remainder in Java.
in this program compute quotient and remainder from the given dividend and divisor in Java.
EXAMPLE :-
public class QR {
public static void main(String[] args) {
int divide = 35, divisor = 3;
int quotient = divide / divisor;
int remainder = divide % divisor;
System.out.println("Quotient = " + quotient);
System.out.println("Remainder = " + remainder);
}
}
OUTPUT
Quotient = 11
Remainder = 2
No comments:
Post a Comment
Please do not any spam link in Comment Box