Java program to find Quotient and Remainder.

public class JavaExample {
    public static void main(String[] args) {
        int num1 = 15, num2 = 2;
        int quotient = num1 / num2;
        int remainder = num1 % num2;
        System.out.println("Quotient is: " + quotient);
        System.out.println("Remainder is: " + remainder);
    }
}
Java program to find Quotient and Remainder. Java program to find Quotient and Remainder. Reviewed by on December 20, 2019 Rating: 5

No comments:

Powered by Blogger.