Math, asked by nafishanaaz700, 6 months ago

write a program to find the quotient
and remainder of these values
Divident - 15
Divisor= 2
from Java​

Answers

Answered by Anonymous
0

Answer:

Step-by-step explanation:

ava Program to Compute Quotient and Remainder

In this program, you'll learn to compute quotient and remainder from the given dividend and divisor in Java.

To understand this example, you should have the knowledge of the following Java programming topics:

Java Hello World Program

Java Operators

Example: Compute Quotient and Remainder

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 = 1

Answered by Anonymous
2

It's Japanese, sister

ありがと (~arigato) means thankyou

Similar questions