write a program to divide two number 153 and 22 and display the content and reminder in Java program
Answers
Answered by
6
Answer:
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);
}
}
Output:
Quotient = 6
Remainder = 21
Answered by
0
Answer:
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);
}
}
Output:
Quotient = 6
Remainder = 21
Explanation:
Similar questions