Write A program to define a method void division ( int m) , which calculate and prints the quotient and remainder of the parameters m after dividing by 5.
Answers
Answered by
3
Answer:
public class QuotientRemainder {
public static void main(String[] args) {
int dividend = 26, divisor = 5;
int quotient = dividend / divisor;
int remainder = dividend % divisor;
System.out.println("Quotient = " + quotient);
System.out.println("Remainder = " + remainder);
}
}
Similar questions