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);
}
}
When you run the program, the output will be:
Quotient = 6 Remainder = 1
Comments
Post a Comment
For More Codes Comment In The Box