Divide n with m and store remainder in x
Answers
Answered by
0
Answer: import java.io.*;
public class QuotientRemainder {
public static void main(String[] args) {
int dividend = 25, divisor = 4;
int quotient = dividend / divisor;
int x = dividend % divisor;
System.out.println("Quotient = " + quotient);
System.out.println("Remainder = " + x);
}
}
Similar questions