Wap in java to display the quotient if the divident is 4265 and the diviser is 5 About the author Everleigh
Answer: public class QuotientRemainder { public static void main(String[] args) { int dividend = 4625, divisor = 5; int quotient = dividend / divisor; int remainder = dividend % divisor; System.out.println(“Quotient = ” + quotient); System.out.println(“Remainder = ” + remainder); } } Reply
Answer:
public class QuotientRemainder {
public static void main(String[] args) {
int dividend = 4625, divisor = 5;
int quotient = dividend / divisor;
int remainder = dividend % divisor;
System.out.println(“Quotient = ” + quotient);
System.out.println(“Remainder = ” + remainder);
}
}