Computer Science, asked by mahijaiswal123, 11 months ago

write a program to divide two number 153 and 22 and display the content and reminder in Java program​

Answers

Answered by suneelgoli
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 saraswata1234
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